aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-ganc/ganc_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/osmo-ganc/ganc_server.c')
-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 0fda63ab5..0e00d58ab 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)