commit | a746697a3673c2d8e25aabe36675892e82437949 | [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 | b372fadd2315d49ce1459e48bdeead392bd1d02c [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; }