summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-24 20:42:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:49 -0500
commit22c7238825112813444012289c898086b2414bd4 (patch)
treebcea8ec7daa516505312d3422419e616fcfd1e22 /source3/nmbd
parent8d5e7367b196cab1f06b3091f3431058777868d4 (diff)
downloadsamba-22c7238825112813444012289c898086b2414bd4.tar.gz
samba-22c7238825112813444012289c898086b2414bd4.tar.bz2
samba-22c7238825112813444012289c898086b2414bd4.zip
r17807: Fix a file descriptor leak pointed out by John Malmberg. Thanks!
Volker (This used to be commit fac007ccbec75f5ee9ff2769d8add4d27e62167d)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/asyncdns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c
index c8caa3fee2..0c7a1e50b7 100644
--- a/source3/nmbd/asyncdns.c
+++ b/source3/nmbd/asyncdns.c
@@ -205,6 +205,7 @@ void run_dns_queue(void)
if (!process_exists_by_pid(child_pid)) {
close(fd_in);
+ close(fd_out);
start_async_dns();
}