Change in ...osmo-iuh[master]: iu_client: sccp_sap_up: don't decode empty disconnect indications

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Wed Sep 4 22:32:10 UTC 2019


lynxis lazus has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-iuh/+/15180 )

Change subject: iu_client: sccp_sap_up: don't decode empty disconnect indications
......................................................................

iu_client: sccp_sap_up: don't decode empty disconnect indications

Change-Id: I1fea8f19433d908583de71d8d2401bbb8c0c7900
---
M src/iu_client.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/iu_client.c b/src/iu_client.c
index 8da9a43..ce06f8a 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -799,7 +799,9 @@
 		if (!ue)
 			break;
 
-		rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg));
+		rc = 0;
+		if (msgb_l2len(oph->msg) > 0)
+			rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg));
 		break;
 	case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_INDICATION):
 		/* connection-oriented data received */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/15180
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I1fea8f19433d908583de71d8d2401bbb8c0c7900
Gerrit-Change-Number: 15180
Gerrit-PatchSet: 5
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190904/435189c2/attachment.htm>


More information about the gerrit-log mailing list