From: xchaos Date: Tue, 7 Nov 2017 18:10:43 +0000 (+0000) Subject: really dumbe string pointer error X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=76b82eecc73f0495aea55f1ef5661fb336b53071;p=svn%2FPrometheus-QoS%2F.git really dumbe string pointer error git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@267 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/prometheus.c b/prometheus.c index 267070f..7adff3c 100644 --- a/prometheus.c +++ b/prometheus.c @@ -1291,7 +1291,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); interface->name, limit_pkts); iptables_save_line(str, ip->v6); - if(limit_pkts) + if(*limit_pkts) /* non-empty string?*/ { /* classify overlimit packets to separate overlimit class */ sprintf(str, "-A %s -%c %s/%d -o %s -j %s%d",