pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/29333 )
Change subject: Don't process RUA messages if HNB is not registered ......................................................................
Don't process RUA messages if HNB is not registered
Related: OS#5676 Change-Id: I85442e8adfefadc3bf3ed795eaef7677eb0b36e9 --- M src/osmo-hnbgw/hnbgw.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/33/29333/1
diff --git a/src/osmo-hnbgw/hnbgw.c b/src/osmo-hnbgw/hnbgw.c index 5b8e05c..3e94e7f 100644 --- a/src/osmo-hnbgw/hnbgw.c +++ b/src/osmo-hnbgw/hnbgw.c @@ -273,6 +273,10 @@ rc = hnbgw_hnbap_rx(hnb, msg); break; case IUH_PPI_RUA: + if (!hnb->hnb_registered) { + LOGHNB(hnb, DMAIN, LOGL_NOTICE, "Discarding RUA as HNB is not registered\n"); + goto out; + } hnb->rua_stream = msgb_sctp_stream(msg); rc = hnbgw_rua_rx(hnb, msg); break;