From 76b82eecc73f0495aea55f1ef5661fb336b53071 Mon Sep 17 00:00:00 2001 From: xchaos Date: Tue, 7 Nov 2017 18:10:43 +0000 Subject: [PATCH] really dumbe string pointer error git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@267 251d49ef-1d17-4917-a970-b30cf55b089b --- prometheus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.30.2