diff options
Diffstat (limited to 'net/proftpd/patches/patch-src_main.c')
-rw-r--r-- | net/proftpd/patches/patch-src_main.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/proftpd/patches/patch-src_main.c b/net/proftpd/patches/patch-src_main.c index cf34663b161..91a4c0ad335 100644 --- a/net/proftpd/patches/patch-src_main.c +++ b/net/proftpd/patches/patch-src_main.c @@ -1,18 +1,18 @@ -$NetBSD: patch-src_main.c,v 1.1 2019/10/07 19:29:47 christos Exp $ +$NetBSD: patch-src_main.c,v 1.2 2021/10/16 19:46:42 tm Exp $ Add packet filter ---- src/main.c.orig 2017-04-09 22:31:02.000000000 -0400 -+++ src/main.c 2019-10-07 15:09:12.516004304 -0400 +--- src/main.c.orig Tue Jul 21 17:25:51 2020 ++++ src/main.c Fri Oct 15 09:29:42 2021 @@ -41,6 +41,7 @@ #endif #include "privs.h" +#include "pfilter.h" - int (*cmd_auth_chk)(cmd_rec *); - void (*cmd_handler)(server_rec *, conn_t *); -@@ -1089,6 +1090,7 @@ + #ifdef PR_USE_OPENSSL + # include <openssl/opensslv.h> +@@ -1116,6 +1117,7 @@ pid_t pid; sigset_t sig_set; @@ -20,13 +20,13 @@ Add packet filter if (no_fork == FALSE) { /* A race condition exists on heavily loaded servers where the parent -@@ -1206,7 +1208,8 @@ +@@ -1233,7 +1235,8 @@ /* Reseed pseudo-randoms */ - srand((unsigned int) (time(NULL) * getpid())); + pr_random_init(); - +#else -+ pfilter_init(); ++ pfilter_init(); #endif /* PR_DEVEL_NO_FORK */ /* Child is running here */ |