[MERGED] openbsc[master]: abisip-find: check bsc_fd_register() result

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Dec 9 15:35:32 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: abisip-find: check bsc_fd_register() result
......................................................................


abisip-find: check bsc_fd_register() result

Change-Id: I72d713725d287d32ec90506099751aeb9b15ef15
Fixes: Coverity CID 70462
---
M openbsc/src/ipaccess/abisip-find.c
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/openbsc/src/ipaccess/abisip-find.c b/openbsc/src/ipaccess/abisip-find.c
index 9fe7df6..5b36272 100644
--- a/openbsc/src/ipaccess/abisip-find.c
+++ b/openbsc/src/ipaccess/abisip-find.c
@@ -194,7 +194,11 @@
 		exit(1);
 	}
 
-	osmo_fd_register(&bfd);
+	rc = osmo_fd_register(&bfd);
+	if (rc < 0) {
+		fprintf(stderr, "Cannot register FD\n");
+		exit(1);
+	}
 
 	timer.cb = timer_cb;
 	timer.data = &bfd;

-- 
To view, visit https://gerrit.osmocom.org/1321
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I72d713725d287d32ec90506099751aeb9b15ef15
Gerrit-PatchSet: 5
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list