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 267070fae0c1498b2fb20143c620e3731c47f8e8..7adff3cc6b493b5b9481a6284af7b6265e799b7d 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.137699 seconds and 4 git commands to generate.