diff options
-rw-r--r-- | src/common/pcu_sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index c8308a9c..0d1f07af 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -621,6 +621,10 @@ static int pcu_rx(struct gsm_network *net, uint8_t msg_type, struct gsm_bts *bts; /* FIXME: allow multiple BTS */ + if (pcu_prim->bts_nr != 0) { + LOGP(DPCU, LOGL_ERROR, "Received PCU Prim for non-existent BTS %u\n", pcu_prim->bts_nr); + return -EINVAL; + } bts = llist_entry(net->bts_list.next, struct gsm_bts, list); switch (msg_type) { |