ports/security/expiretable/files/patch-expiretable.c
Renato Botelho 712ed31c3e security/expiretable: Fix build on 13+
get_states() is the reason it stopped building on FreeBSD 13 and newer.
Retire this function since it's not used anywhere and get the build
fixed.

PR:		253547
Reported by:	mike@sentex.net
Reviewed by:	kp
Approved by:	maintainer timeout (2 weeks)
Obtained from:	pfSense
MFH:		2021Q2
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-05-04 09:18:48 -03:00

10 lines
364 B
C

--- expiretable.c.orig 2006-01-18 22:47:01 UTC
+++ expiretable.c
@@ -290,6 +290,7 @@ main(int argc, char *const *argv) {
for (i = 0; i < astats_count; i++) {
if (astats[i].pfras_tzero <= min_timestamp) {
del_addrs_list[del_addrs_count] = astats[i].pfras_a;
+ del_addrs_list[del_addrs_count].pfra_fback = 0;
del_addrs_count++;
}
}