summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-26 23:35:31 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-27 09:59:30 +0100
commit32a1d54279b52eedcf098501b5f43652fbc8785c (patch)
treeafc61fd6d693da0b2468b8510b5331a33144e4c7
parentedfab6fdf50fe02348cf9f3dd25809c3a2056d9c (diff)
sua: call conn_disconnect() in sua_disconnect_req()
disconnect is not a class3/4 operation. We simply generate + send the DISCONNECT.ind message to the remote side and drop all local state about the connection. Change-Id: I4e336f9dfd4ebd0122cd9e5a70db3d05e9dc1764
-rw-r--r--src/sua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sua.c b/src/sua.c
index 294dc6a..ad8385d 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -548,6 +548,7 @@ static int sua_disconnect_req(struct osmo_sccp_link *link, struct osmo_scu_prim
xua_msg_free(xua);
conn_state_set(conn, S_DISCONN_PEND);
+ conn_destroy(conn);
return sua_link_send(link, outmsg);
}