[PATCH] libosmo-sccp[master]: sua: call conn_disconnect() in sua_disconnect_req()

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jan 25 21:40:14 UTC 2017

Review at  https://gerrit.osmocom.org/1667

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

Change-Id: I4e336f9dfd4ebd0122cd9e5a70db3d05e9dc1764
M src/sua.c
1 file changed, 1 insertion(+), 0 deletions(-)

  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/67/1667/1

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 @@
 	conn_state_set(conn, S_DISCONN_PEND);
+	conn_destroy(conn);
 	return sua_link_send(link, outmsg);

To view, visit https://gerrit.osmocom.org/1667
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e336f9dfd4ebd0122cd9e5a70db3d05e9dc1764
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>

More information about the gerrit-log mailing list