nat: Check the con->imsi for the tracked IMSI
On DT messages we directly write into the tracked SCCP connection. This means "imsi" will always be NULL at this check. Change the code to use con->imsi Fixes: Coverity CID 1293151
This commit is contained in:
parent
8ccf06c58b
commit
0ac00c15b9
|
@ -1093,8 +1093,8 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
|
|||
filter = bsc_nat_filter_dt(bsc, msg,
|
||||
con, parsed, &cause);
|
||||
if (filter < 0) {
|
||||
if (imsi)
|
||||
bsc_nat_inform_reject(bsc, imsi);
|
||||
if (con->imsi)
|
||||
bsc_nat_inform_reject(bsc, con->imsi);
|
||||
bsc_stat_reject(filter, bsc, 1);
|
||||
bsc_send_con_release(bsc, con, &cause);
|
||||
con = NULL;
|
||||
|
|
Loading…
Reference in New Issue