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>
This commit is contained in:
parent
6e1d6efd97
commit
e0f97bd73c
@ -1,6 +1,6 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user