--- iptables-1.2.9/iptables-restore.c.counters 2004-02-26 14:52:48.110211624 +0100 +++ iptables-1.2.9/iptables-restore.c 2004-02-26 15:10:24.495616632 +0100 @@ -71,7 +71,11 @@ int parse_counters(char *string, struct ipt_counters *ctr) { - return (sscanf(string, "[%llu:%llu]", &ctr->pcnt, &ctr->bcnt) == 2); + if (string != NULL) + return (sscanf(string, "[%llu:%llu]", &ctr->pcnt, &ctr->bcnt) + == 2); + else + return (0 == 2); } /* global new argv and argc */