mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-bsc.git
synced 2025-11-02 21:23:19 +00:00
bsc_sccplite_msc_send(): Fix msgb leak
Change-Id: I08839ae297fa4ec2ffc9ecceb1bad345bf76da10
This commit is contained in:
@@ -671,8 +671,10 @@ int bsc_sccplite_msc_send(struct bsc_msc_data *msc, struct msgb *msg)
|
||||
}
|
||||
|
||||
/* don't attempt to send CTRL on a non-SCCPlite AS */
|
||||
if (as->cfg.proto != OSMO_SS7_ASP_PROT_IPA)
|
||||
if (as->cfg.proto != OSMO_SS7_ASP_PROT_IPA) {
|
||||
msgb_free(msg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return _ss7_as_send(as, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user