pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-abis/+/39024?usp=email )
Change subject: ipaccess: Assert explicitly about non-null ptr
......................................................................
ipaccess: Assert explicitly about non-null ptr
Make coverity happy. Those pointers can never be NULL due to related
logic of e1i_ts_has_pending_tx_msgs() and e1inp_tx_ts().
Change-Id: I78b570f67002d6ebb32c6e6b3b521f4379239bc5
Closes: Coverity CID#436263
Closes: Coverity CID#436264
---
M src/input/ipaccess.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/24/39024/1
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index d1fae94..6110004 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -503,6 +503,8 @@
struct e1inp_sign_link *sign_link = NULL;
struct msgb *msg;
msg = e1inp_tx_ts(e1i_ts, &sign_link);
+ OSMO_ASSERT(msg);
+ OSMO_ASSERT(sign_link);
rc |= ipaccess_bsc_send_msg(e1i_ts, sign_link, srv, msg);
}
return rc;
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/39024?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I78b570f67002d6ebb32c6e6b3b521f4379239bc5
Gerrit-Change-Number: 39024
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>