diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-07 20:35:05 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-07 20:35:13 +0700 |
commit | 609978d0abf33a06af275328b45a610a06b10052 (patch) | |
tree | 8e9f6f9b126d84ea0221c4840c31f0d382206aa3 | |
parent | 28f0af872e530480db9679beb2ed34a8a4893361 (diff) |
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
-rw-r--r-- | src/hlr.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -466,6 +466,7 @@ static int read_cb_forward(struct osmo_gsup_conn *conn, struct msgb *msg, const 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; |