diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-01 07:15:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-01 07:15:13 +0000 |
commit | 84d3b09b8542518a4684d07e975bcc9eaa1f6b69 (patch) | |
tree | 5e68972bb7605145e8f0d80ff9c5d794e9d4306f | |
parent | 514b91827a970a0041314af341b8c66a01668e4a (diff) | |
download | samba-84d3b09b8542518a4684d07e975bcc9eaa1f6b69.tar.gz samba-84d3b09b8542518a4684d07e975bcc9eaa1f6b69.tar.xz samba-84d3b09b8542518a4684d07e975bcc9eaa1f6b69.zip |
don't start the async dns process unless we actually need it!
(ie. check for lp_dns_proxy())
-rw-r--r-- | source/nmbd/nmbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 06d6bc3bb37..d30efb550ce 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -844,7 +844,7 @@ static void usage(char *pname) #ifndef SYNC_DNS /* Setup the async dns. We do it here so it doesn't have all the other stuff initialised and thus chewing memory and sockets */ - if(lp_we_are_a_wins_server()) { + if(lp_we_are_a_wins_server() && lp_dns_proxy()) { start_async_dns(); } #endif |