Change in osmo-hlr[master]: hlr.c: fix: also store the session state in read_cb_forward()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Tue May 7 14:12:17 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13897


Change subject: hlr.c: fix: also store the session state in read_cb_forward()
......................................................................

hlr.c: fix: also store the session state in read_cb_forward()

If the session state is not set (OSMO_GSUP_SESSION_STATE_NONE),
osmo_gsup_encode() would omit the OSMO_GSUP_SESSION_ID_IE.

Fix for Change-Id: Ia4f345abc877baaf0a8f73b8988e6514d9589bf5
Change-Id: Idcd209a59d1ee5230104f3101740140d366b0646
---
M src/hlr.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/97/13897/1

diff --git a/src/hlr.c b/src/hlr.c
index 8078db0..38422c8 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -466,6 +466,7 @@
 	gsup_err->destination_name = talloc_memdup(gsup_err, gsup->destination_name, gsup->destination_name_len);
 	gsup_err->destination_name_len = gsup->destination_name_len;
 	gsup_err->message_type = OSMO_GSUP_MSGT_E_ROUTING_ERROR;
+	gsup_err->session_state = gsup->session_state;
 	gsup_err->session_id = gsup->session_id;
 	gsup_err->source_name = talloc_memdup(gsup_err, gsup->source_name, gsup->source_name_len);
 	gsup_err->source_name_len = gsup->source_name_len;

-- 
To view, visit https://gerrit.osmocom.org/13897
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idcd209a59d1ee5230104f3101740140d366b0646
Gerrit-Change-Number: 13897
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190507/a803b20a/attachment.htm>


More information about the gerrit-log mailing list