osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/38758?usp=email )
Change subject: bsc_sccplite_msc_send(): Fix msgb leak ......................................................................
bsc_sccplite_msc_send(): Fix msgb leak
Change-Id: I08839ae297fa4ec2ffc9ecceb1bad345bf76da10 (cherry picked from commit bce6ef609b12d2a7ce06f9d695ee0fb83c4656b8) --- M src/osmo-bsc/bsc_ctrl.c 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/58/38758/1
diff --git a/src/osmo-bsc/bsc_ctrl.c b/src/osmo-bsc/bsc_ctrl.c index 2138c65..a8224ee 100644 --- a/src/osmo-bsc/bsc_ctrl.c +++ b/src/osmo-bsc/bsc_ctrl.c @@ -672,8 +672,10 @@ }
/* 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); }