commit | a7c377d593b88cd6ac91e59d2d75c6d873282590 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Apr 06 12:42:35 2010 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jun 15 20:24:12 2010 +0800 |
tree | d1eb1866f4e9ae99d3e77f8699ef229321516d8a | |
parent | 5f291d50774b49713acdfd580d210cb275609f3e [diff] |
nat: Close the filedescriptor when ignoring the request.
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 9e0a23d..1f6b578 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c
@@ -547,6 +547,7 @@ */ if (!msc_con->is_connected) { LOGP(DNAT, LOGL_NOTICE, "Disconnecting BSC due lack of MSC connection.\n"); + close(ret); return 0; }