smpp: Do not check conn for being null
We are deferencing conn earlier in this function without doing a null check. At the time deliver_to_esme is called the conn will always exist and even the lchan is likely to be present. Remove the null check for conn right now. Fixes: Coverity CID 1210594
This commit is contained in:
parent
56e1766dba
commit
019851a523
|
@ -530,7 +530,7 @@ static int deliver_to_esme(struct osmo_esme *esme, struct gsm_sms *sms,
|
|||
memcpy(deliver.short_message, sms->user_data, deliver.sm_length);
|
||||
}
|
||||
|
||||
if (esme->acl && esme->acl->osmocom_ext && conn && conn->lchan)
|
||||
if (esme->acl && esme->acl->osmocom_ext && conn->lchan)
|
||||
append_osmo_tlvs(&deliver.tlv, conn->lchan);
|
||||
|
||||
return smpp_tx_deliver(esme, &deliver);
|
||||
|
|
Loading…
Reference in New Issue