diff options
author | Stefan Tomanek <stefan.tomanek+dnsmasq@wertarbyte.de> | 2015-04-16 15:20:59 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2015-04-16 15:20:59 +0100 |
commit | b4c0f092d8ce63ea4763c0ac17aa8d24318ad301 (patch) | |
tree | 51216c55b617214fb0e8560f92b54ee4cbd45b9c | |
parent | 78c6184752dce27849e36cce4360abc27b8d76d2 (diff) | |
download | dnsmasq-b4c0f092d8ce63ea4763c0ac17aa8d24318ad301.tar.gz |
Fix (srk induced) crash in new tftp_no_fail code.
-rw-r--r-- | src/dnsmasq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c index a7c5da8..20b15c0 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -655,7 +655,8 @@ int main (int argc, char **argv) _exit(0); } } - closedir(dir); + else + closedir(dir); } for (p = daemon->if_prefix; p; p = p->next) @@ -670,7 +671,8 @@ int main (int argc, char **argv) _exit(0); } } - closedir(dir); + else + closedir(dir); } } #endif |