really dumbe string pointer error
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 7 Nov 2017 18:10:43 +0000 (18:10 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 7 Nov 2017 18:10:43 +0000 (18:10 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@267 251d49ef-1d17-4917-a970-b30cf55b089b

prometheus.c

index 267070f..7adff3c 100644 (file)
@@ -1291,7 +1291,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version);
                 interface->name, limit_pkts);\r
    iptables_save_line(str, ip->v6);\r
 \r
-   if(limit_pkts)\r
+   if(*limit_pkts) /* non-empty string?*/\r
    {\r
     /* classify overlimit packets to separate overlimit class */\r
     sprintf(str, "-A %s -%c %s/%d -o %s -j %s%d",\r
This page took 0.159792 seconds and 4 git commands to generate.