freebsd-skq/sbin/ipfw
Lutz Donnerhacke bf7cc0f9cb sbin/ipfw: Fix null pointer deference when printing counters
ipfw -[tT] prints statistics of the last access. If the rule was never
used, the counter might be not exist.  This happens unconditionally on
inserting a new rule.  Avoid printing statistics in this case.

PR:	255491
Reported by:	Haisheng Zhouz
Reviewed by:	ae
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D30046
2021-05-02 21:28:46 +02:00
..
altq.c ipfw(8): Fix most warnings with the default WARNS level. 2020-07-13 17:51:04 +00:00
dummynet.c [ipfw] quieten maybe-uninitialized errors in ipfw when compiled under mips-gcc-6.3.0. 2020-07-14 05:07:16 +00:00
ipfw2.c sbin/ipfw: Fix null pointer deference when printing counters 2021-05-02 21:28:46 +02:00
ipfw2.h Allow setting alias port ranges in libalias and ipfw. This will allow a system 2021-02-02 13:24:17 -08:00
ipfw.8 ipfw: update man page example for nat show log 2021-04-07 15:37:46 +00:00
ipv6.c ipfw(8): Fix most warnings with the default WARNS level. 2020-07-13 17:51:04 +00:00
main.c Allow setting alias port ranges in libalias and ipfw. This will allow a system 2021-02-02 13:24:17 -08:00
Makefile ipfw(8): Fix most warnings with the default WARNS level. 2020-07-13 17:51:04 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nat64clat.c Fix SIGSEGV in ipfw(8) when NAT64 prefix length is omitted. 2020-08-05 11:26:49 +00:00
nat64lsn.c [ipfw] quieten maybe-uninitialized errors in ipfw when compiled under mips-gcc-6.3.0. 2020-07-14 05:07:16 +00:00
nat64stl.c Fix SIGSEGV in ipfw(8) when NAT64 prefix length is omitted. 2020-08-05 11:26:49 +00:00
nat.c Allow setting alias port ranges in libalias and ipfw. This will allow a system 2021-02-02 13:24:17 -08:00
nptv6.c ipfw(8): Fix most warnings with the default WARNS level. 2020-07-13 17:51:04 +00:00
tables.c ipfw: make algo name argument optional for some table types 2021-02-25 16:57:47 +03:00