1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

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:
Michael Gmelin 2023-01-10 22:53:46 +01:00
parent 6e1d6efd97
commit e0f97bd73c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= pftop
PORTVERSION= 0.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils net
MAINTAINER= grembo@FreeBSD.org

View File

@ -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