]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/dnsmasq/0076-Fix-srk-induced-crash-in-new-tftp_no_fail-code.patch
Merge remote-tracking branch 'earl/tor' into next
[ipfire-2.x.git] / src / patches / dnsmasq / 0076-Fix-srk-induced-crash-in-new-tftp_no_fail-code.patch
1 From b4c0f092d8ce63ea4763c0ac17aa8d24318ad301 Mon Sep 17 00:00:00 2001
2 From: Stefan Tomanek <stefan.tomanek+dnsmasq@wertarbyte.de>
3 Date: Thu, 16 Apr 2015 15:20:59 +0100
4 Subject: [PATCH 76/98] Fix (srk induced) crash in new tftp_no_fail code.
5
6 ---
7 src/dnsmasq.c | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10 diff --git a/src/dnsmasq.c b/src/dnsmasq.c
11 index 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 --
35 2.1.0
36