summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-26 14:57:23 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-26 17:10:29 +0100
commit84466b28f575166dea529effc0898d964f3d4d63 (patch)
tree7f739ac98f2e0728072143a41cd8ec88a623621b
parent456f68b16041f9cb30281e428744a12a372a5b73 (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;