commit | cf55978e483e560e4b859e67dbb154d45745edd9 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri May 01 15:43:49 2009 +0000 |
committer | Harald Welte <laforge@gnumonks.org> | Fri May 01 15:43:49 2009 +0000 |
tree | 33185f474c8d142119f6e1d2330f10bbb7fd7d34 | |
parent | b463060db9dccecf0608ec8ef1dae27640b4e403 [diff] |
make sure we terminate bsc_hack if the OML/RSL listening sockets cannot be created
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 85ec031..ea7f847 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c
@@ -587,6 +587,8 @@ /* Listen for OML connections */ ret = make_sock(&e1h->listen_fd, 3002, listen_fd_cb); + if (ret < 0) + return ret; /* Listen for RSL connections */ ret = make_sock(&e1h->rsl_listen_fd, 3003, rsl_listen_fd_cb);