summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-04-07 20:09:55 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-07 20:09:55 +0200
commitcec595fd550a72dbf941a7d03aacc0f4c447a42e (patch)
tree9275fa4d63c277f2b67a82262faff31a697a8839
parentbfd5a86df23cb47b311d6ef7147de46273002f15 (diff)
ganc: Fix use after free from 1301d9cd394e87d9b3bd010466f971b39080ace6zecke/laforge-ganc
-rw-r--r--openbsc/src/osmo-ganc/ganc_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-ganc/ganc_server.c b/openbsc/src/osmo-ganc/ganc_server.c
index 0fda63a..0e00d58 100644
--- a/openbsc/src/osmo-ganc/ganc_server.c
+++ b/openbsc/src/osmo-ganc/ganc_server.c
@@ -77,7 +77,7 @@ static void gan_peer_destroy(struct gan_peer *peer)
/* we can only free conn after peer, as peer is a sub-object of
* ocnn in the talloc hierarchical allocator */
if (conn)
- osmo_conn_close(peer->conn);
+ osmo_conn_close(conn);
}
static struct msgb *unc_msgb_alloc(void)