If there is already a subscriber and it does not equal to us -> moan

And unreference the gsm_subscriber object otherwise we would leak.
This commit is contained in:
Harald Welte 2009-01-10 03:21:41 +00:00
parent 4ed0e92464
commit 9bb7c70016
1 changed files with 5 additions and 0 deletions

View File

@ -603,6 +603,11 @@ static int gsm48_rx_mm_serv_req(struct msgb *msg)
if (!msg->lchan->subscr)
msg->lchan->subscr = subscr;
else if (msg->lchan->subscr != subscr) {
DEBUGP(DMM, "<- CM Channel already owned by someone else?\n");
subscr_put(subscr);
}
return gsm48_tx_mm_serv_ack(msg->lchan);
}