]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix (srk induced) crash in new tftp_no_fail code.
authorStefan Tomanek <stefan.tomanek+dnsmasq@wertarbyte.de>
Thu, 16 Apr 2015 14:20:59 +0000 (15:20 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Thu, 16 Apr 2015 14:20:59 +0000 (15:20 +0100)
src/dnsmasq.c

index a7c5da8fbd01fad50b2dbf87e3b11eb4eed0aaa4..20b15c05103a922a98a6413433249235b546e941 100644 (file)
@@ -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