This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/25953 ) Change subject: libmsc: fix NULL pointer dereference in trans_lcls_compose() ...................................................................... libmsc: fix NULL pointer dereference in trans_lcls_compose() Change-Id: I96342de4cb3e0bc3d3cac7538d4517aa211e8a38 Fixes: CID#240768 --- M src/libmsc/transaction.c 1 file changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/53/25953/1 diff --git a/src/libmsc/transaction.c b/src/libmsc/transaction.c index 2108ab4..25c0e3c 100644 --- a/src/libmsc/transaction.c +++ b/src/libmsc/transaction.c @@ -112,6 +112,11 @@ struct osmo_lcls *trans_lcls_compose(const struct gsm_trans *trans, bool use_lac) { + if (!trans) { + LOGP(DCC, LOGL_ERROR, "LCLS: unable to fill parameters for unallocated transaction\n"); + return NULL; + } + if (!trans->net->a.sri->sccp) return NULL; @@ -119,11 +124,6 @@ struct osmo_lcls *lcls; uint8_t w = osmo_ss7_pc_width(&ss7->cfg.pc_fmt); - if (!trans) { - LOGP(DCC, LOGL_ERROR, "LCLS: unable to fill parameters for unallocated transaction\n"); - return NULL; - } - if (!trans->net->lcls_permitted) { LOGP(DCC, LOGL_NOTICE, "LCLS disabled globally\n"); return NULL; -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/25953 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: I96342de4cb3e0bc3d3cac7538d4517aa211e8a38 Gerrit-Change-Number: 25953 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211026/bc94d367/attachment.htm>