Don't process RUA messages if HNB is not registered
Related: OS#5676 Change-Id: I85442e8adfefadc3bf3ed795eaef7677eb0b36e9
This commit is contained in:
parent
5db9c06a61
commit
6fc9fad8b7
|
@ -279,6 +279,10 @@ static int hnb_read_cb(struct osmo_stream_srv *conn)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue