]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - tftp/patches/tftp-0.40-remap.patch
tftp: New package.
[people/pmueller/ipfire-3.x.git] / tftp / patches / tftp-0.40-remap.patch
1 diff -up tftp-hpa-0.49/tftpd/remap.c.zero tftp-hpa-0.49/tftpd/remap.c
2 --- tftp-hpa-0.49/tftpd/remap.c.zero 2008-10-20 18:08:31.000000000 -0400
3 +++ tftp-hpa-0.49/tftpd/remap.c 2008-11-25 11:41:09.000000000 -0500
4 @@ -286,6 +286,7 @@ struct rule *parserulefile(FILE * f)
5 int lineno = 0;
6 int err = 0;
7
8 + memset(this_rule, '\0', sizeof(struct rule));
9 while (lineno++, fgets(line, MAXLINE, f)) {
10 rv = parseline(line, this_rule, lineno);
11 if (rv < 0)
12 @@ -294,6 +295,7 @@ struct rule *parserulefile(FILE * f)
13 *last_rule = this_rule;
14 last_rule = &this_rule->next;
15 this_rule = tfmalloc(sizeof(struct rule));
16 + memset(this_rule, '\0', sizeof(struct rule));
17 }
18 }
19