65ec8ee
diff -up tftp-hpa-0.49/tftpd/remap.c.zero tftp-hpa-0.49/tftpd/remap.c
65ec8ee
--- tftp-hpa-0.49/tftpd/remap.c.zero	2008-10-20 18:08:31.000000000 -0400
65ec8ee
+++ tftp-hpa-0.49/tftpd/remap.c	2008-11-25 11:41:09.000000000 -0500
65ec8ee
@@ -286,6 +286,7 @@ struct rule *parserulefile(FILE * f)
65ec8ee
     int lineno = 0;
65ec8ee
     int err = 0;
912ab05
 
65ec8ee
+    memset(this_rule, '\0', sizeof(struct rule));
65ec8ee
     while (lineno++, fgets(line, MAXLINE, f)) {
65ec8ee
         rv = parseline(line, this_rule, lineno);
65ec8ee
         if (rv < 0)
65ec8ee
@@ -294,6 +295,7 @@ struct rule *parserulefile(FILE * f)
65ec8ee
             *last_rule = this_rule;
65ec8ee
             last_rule = &this_rule->next;
65ec8ee
             this_rule = tfmalloc(sizeof(struct rule));
65ec8ee
+            memset(this_rule, '\0', sizeof(struct rule));
65ec8ee
         }
912ab05
     }
912ab05