aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 12:42:35 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 12:42:35 +0200
commit494c086dca1fbfcfeaf0d2dbde4fd6f85e6552a8 (patch)
treec293be077a29aaa112a7827602c98750578e2502
parent6b18c8f3b67da234fe8a8266958ef8e3dc3377b1 (diff)
nat: Close the filedescriptor when ignoring the request.
-rw-r--r--openbsc/src/nat/bsc_nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 8ac68da28..82f0fec8b 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -547,6 +547,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what)
*/
if (!msc_con->is_connected) {
LOGP(DNAT, LOGL_NOTICE, "Disconnecting BSC due lack of MSC connection.\n");
+ close(ret);
return 0;
}