Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

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

Change subject: iu_client: ensure UE is not NULL on CO primitives
..

iu_client: ensure UE is not NULL on CO primitives

When ue_conn_ctx_find() can not find a UE it returns NULL.

Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
---
M src/iu_client.c
1 file changed, 6 insertions(+), 0 deletions(-)

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



diff --git a/src/iu_client.c b/src/iu_client.c
index b5f3557..8da9a43 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -796,6 +796,9 @@
LOGPIU(LOGL_DEBUG, "N-DISCONNECT.ind(%u)\n",
   prim->u.disconnect.conn_id);
ue = ue_conn_ctx_find(prim->u.disconnect.conn_id);
+   if (!ue)
+   break;
+
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):
@@ -804,6 +807,9 @@
   osmo_hexdump(msgb_l2(oph->msg), msgb_l2len(oph->msg)));
/* resolve UE context */
ue = ue_conn_ctx_find(prim->u.data.conn_id);
+   if (!ue)
+   break;
+
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_UNITDATA, PRIM_OP_INDICATION):

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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 4
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-16 Thread laforge
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178 )

Change subject: iu_client: ensure UE is not NULL on CO primitives
..


Patch Set 3: Code-Review+2


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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Sat, 17 Aug 2019 01:18:17 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-16 Thread pespin
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178 )

Change subject: iu_client: ensure UE is not NULL on CO primitives
..


Patch Set 3: Code-Review+2


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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Fri, 16 Aug 2019 10:20:47 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-15 Thread lynxis lazus
lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178 )

Change subject: iu_client: ensure UE is not NULL on CO primitives
..


Patch Set 3:

(1 comment)

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c
File src/iu_client.c:

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c@801
PS1, Line 801:  if (!ue)
> right. this patch is in the wrong order. there is a commit for that.
Done



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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Fri, 16 Aug 2019 00:01:15 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: lynxis lazus 
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-13 Thread lynxis lazus
lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178 )

Change subject: iu_client: ensure UE is not NULL on CO primitives
..


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c
File src/iu_client.c:

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c@801
PS1, Line 801:  if (!ue)
> You are returning unset value for rc here, as well as in the other addition.
right. this patch is in the wrong order. there is a commit for that.



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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Tue, 13 Aug 2019 18:41:01 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin 
Gerrit-MessageType: comment


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-13 Thread pespin
pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178 )

Change subject: iu_client: ensure UE is not NULL on CO primitives
..


Patch Set 1: Code-Review-1

(1 comment)

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c
File src/iu_client.c:

https://gerrit.osmocom.org/#/c/15178/1/src/iu_client.c@801
PS1, Line 801:  if (!ue)
You are returning unset value for rc here, as well as in the other addition.



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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Tue, 13 Aug 2019 16:43:14 +
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in ...osmo-iuh[master]: iu_client: ensure UE is not NULL on CO primitives

2019-08-13 Thread lynxis lazus
lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/15178


Change subject: iu_client: ensure UE is not NULL on CO primitives
..

iu_client: ensure UE is not NULL on CO primitives

When ue_conn_ctx_find() can not find a UE it returns NULL.

Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
---
M src/iu_client.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/78/15178/1

diff --git a/src/iu_client.c b/src/iu_client.c
index f4e0664..9addd1c 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -798,6 +798,9 @@
LOGPIU(LOGL_DEBUG, "N-DISCONNECT.ind(%u)\n",
   prim->u.disconnect.conn_id);
ue = ue_conn_ctx_find(prim->u.disconnect.conn_id);
+   if (!ue)
+   break;
+
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):
@@ -806,6 +809,9 @@
   osmo_hexdump(msgb_l2(oph->msg), msgb_l2len(oph->msg)));
/* resolve UE context */
ue = ue_conn_ctx_find(prim->u.data.conn_id);
+   if (!ue)
+   break;
+
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_UNITDATA, PRIM_OP_INDICATION):

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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5
Gerrit-Change-Number: 15178
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus 
Gerrit-MessageType: newchange