Skip to content
Snippets Groups Projects
Commit e0f97bd7 authored by Michael Gmelin's avatar Michael Gmelin
Browse files

sysutils/pftop: Fix STATES display

This stops pftop from segfaulting and makes it show the correct
total states counter.

Reported by: Herbert J. Skuhra <herbert@gojira.at>
parent 6e1d6efd
No related branches found
No related tags found
No related merge requests found
PORTNAME= pftop
PORTVERSION= 0.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils net
MAINTAINER= grembo@FreeBSD.org
......
......@@ -343,7 +343,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/02 21:16:10 sthen Exp $
#endif
#ifdef HAVE_RULE_STATES
+#ifdef HAVE_PFSYNC_KEY
+ print_fld_size(FLD_STATS, *pr->states_tot);
+ print_fld_size(FLD_STATS, pr->u_states_tot);
+#else
print_fld_size(FLD_STATS, pr->states);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment