pespin has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-abis/+/38997?usp=email )
Change subject: ipaccess: Assert fd is positive
......................................................................
ipaccess: Assert fd is positive
Make coverity happy. We are in a rx path from socket, so socket should
be fine at that point.
Closes: Coverity CID#435266
Change-Id: I09004040107fb72b6170618a6253a6225f4351c2
---
M src/input/ipaccess.c
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 5a24686..505ec3f 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -958,6 +958,7 @@
/* ping, pong and acknowledgment cases. */
struct osmo_fd tmp_ofd = { .fd = osmo_stream_cli_get_fd(cli) };
+ OSMO_ASSERT(tmp_ofd.fd >= 0);
ret = ipa_ccm_rcvmsg_bts_base(msg, &tmp_ofd);
if (ret < 0)
goto err;
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/38997?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I09004040107fb72b6170618a6253a6225f4351c2
Gerrit-Change-Number: 38997
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>