bsc_sccplite_msc_send(): Fix msgb leak

Change-Id: I08839ae297fa4ec2ffc9ecceb1bad345bf76da10
This commit is contained in:
Pau Espin Pedrol
2024-11-08 18:44:25 +01:00
parent ea8071e6d2
commit bce6ef609b

View File

@@ -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);
}