Fix (srk induced) crash in new tftp_no_fail code.

This commit is contained in:
Stefan Tomanek
2015-04-16 15:20:59 +01:00
committed by Simon Kelley
parent 78c6184752
commit b4c0f092d8

View File

@@ -655,7 +655,8 @@ int main (int argc, char **argv)
_exit(0); _exit(0);
} }
} }
closedir(dir); else
closedir(dir);
} }
for (p = daemon->if_prefix; p; p = p->next) for (p = daemon->if_prefix; p; p = p->next)
@@ -670,7 +671,8 @@ int main (int argc, char **argv)
_exit(0); _exit(0);
} }
} }
closedir(dir); else
closedir(dir);
} }
} }
#endif #endif