summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-26 14:57:23 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-09 15:35:30 +0000
commit8d35965f24047f097f0a639b7a73acf5af0ff714 (patch)
tree819ee4e57d4efa1c0ebff6f50f2327643ccf57f9
parentc346f87371b5c03f2669add329a1f4962b3103bb (diff)
abisip-find: check bsc_fd_register() result
Change-Id: I72d713725d287d32ec90506099751aeb9b15ef15 Fixes: Coverity CID 70462
-rw-r--r--openbsc/src/ipaccess/abisip-find.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/ipaccess/abisip-find.c b/openbsc/src/ipaccess/abisip-find.c
index 9fe7df680..5b36272e8 100644
--- a/openbsc/src/ipaccess/abisip-find.c
+++ b/openbsc/src/ipaccess/abisip-find.c
@@ -194,7 +194,11 @@ int main(int argc, char **argv)
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;