]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0076-Fix-srk-induced-crash-in-new-tftp_no_fail-code.patch
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[ipfire-2.x.git] / src / patches / dnsmasq / 0076-Fix-srk-induced-crash-in-new-tftp_no_fail-code.patch
CommitLineData
d54a2ce4
MT
1From b4c0f092d8ce63ea4763c0ac17aa8d24318ad301 Mon Sep 17 00:00:00 2001
2From: Stefan Tomanek <stefan.tomanek+dnsmasq@wertarbyte.de>
3Date: Thu, 16 Apr 2015 15:20:59 +0100
697b4f04 4Subject: [PATCH 076/113] Fix (srk induced) crash in new tftp_no_fail code.
d54a2ce4
MT
5
6---
7 src/dnsmasq.c | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10diff --git a/src/dnsmasq.c b/src/dnsmasq.c
11index a7c5da8fbd01..20b15c05103a 100644
12--- a/src/dnsmasq.c
13+++ b/src/dnsmasq.c
14@@ -655,7 +655,8 @@ int main (int argc, char **argv)
15 _exit(0);
16 }
17 }
18- closedir(dir);
19+ else
20+ closedir(dir);
21 }
22
23 for (p = daemon->if_prefix; p; p = p->next)
24@@ -670,7 +671,8 @@ int main (int argc, char **argv)
25 _exit(0);
26 }
27 }
28- closedir(dir);
29+ else
30+ closedir(dir);
31 }
32 }
33 #endif
34--
352.1.0
36