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:
parent
4ed0e92464
commit
9bb7c70016
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue