osmith has uploaded this change for review.

View Change

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

To view, visit change 38758. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: osmith/1.12.2
Gerrit-Change-Id: I08839ae297fa4ec2ffc9ecceb1bad345bf76da10
Gerrit-Change-Number: 38758
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-CC: pespin <pespin@sysmocom.de>