mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
gsm_04_11: Speculative leak fix for the SMS...
This commit is contained in:
@@ -802,8 +802,6 @@ static int gsm411_rx_rp_error(struct msgb *msg, struct gsm_trans *trans,
|
||||
sms_free(sms);
|
||||
trans->sms.sms = NULL;
|
||||
|
||||
//trans_free(trans);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1168,6 +1166,12 @@ static int subscr_sig_cb(unsigned int subsys, unsigned int signal,
|
||||
|
||||
void _gsm411_sms_trans_free(struct gsm_trans *trans)
|
||||
{
|
||||
if (trans->sms.sms) {
|
||||
LOGP(DSMS, LOGL_ERROR, "Transaction contains SMS.\n");
|
||||
sms_free(trans->sms.sms);
|
||||
trans->sms.sms = NULL;
|
||||
}
|
||||
|
||||
bsc_del_timer(&trans->sms.cp_timer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user