commit | 4c7f7407e5736616e3759ff6ea970d501a77d34f | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sat Nov 26 14:57:23 2016 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Dec 09 15:35:30 2016 +0000 |
tree | 819ee4e57d4efa1c0ebff6f50f2327643ccf57f9 | |
parent | e7e3f27c8c38c31e18a0e71c2ecacd26d8341c53 [diff] [blame] |
abisip-find: check bsc_fd_register() result Change-Id: I72d713725d287d32ec90506099751aeb9b15ef15 Fixes: Coverity CID 70462
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;