Don't process RUA messages if HNB is not registered

Related: OS#5676
Change-Id: I85442e8adfefadc3bf3ed795eaef7677eb0b36e9
This commit is contained in:
Harald Welte 2022-09-12 09:00:10 +02:00
parent 5db9c06a61
commit 6fc9fad8b7
1 changed files with 4 additions and 0 deletions

View File

@ -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;