Module Name: src Committed By: christos Date: Tue Jan 26 02:54:25 UTC 2016
Modified Files: src/external/bsd/blacklist/diff: proftpd.diff Log Message: fix fd leak To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/blacklist/diff/proftpd.diff Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/blacklist/diff/proftpd.diff diff -u src/external/bsd/blacklist/diff/proftpd.diff:1.2 src/external/bsd/blacklist/diff/proftpd.diff:1.3 --- src/external/bsd/blacklist/diff/proftpd.diff:1.2 Fri Jan 22 22:11:14 2016 +++ src/external/bsd/blacklist/diff/proftpd.diff Mon Jan 25 21:54:25 2016 @@ -1,15 +1,14 @@ ---- Make.rules.in.orig 2016-01-22 17:33:49.000000000 -0500 -+++ Make.rules.in 2016-01-22 17:33:41.000000000 -0500 +--- Make.rules.in.orig 2015-05-27 20:25:54.000000000 -0400 ++++ Make.rules.in 2016-01-25 21:48:47.000000000 -0500 @@ -110,3 +110,8 @@ + FTPWHO_OBJS=ftpwho.o scoreboard.o misc.o BUILD_FTPWHO_OBJS=utils/ftpwho.o utils/scoreboard.o utils/misc.o - ++ +CPPFLAGS+=-DHAVE_BLACKLIST +LIBS+=-lblacklist +OBJS+= pfilter.o +BUILD_OBJS+= src/pfilter.o -+ - --- /dev/null 2016-01-22 17:30:55.000000000 -0500 +++ include/pfilter.h 2016-01-22 16:18:33.000000000 -0500 @@ -0,0 +1,3 @@ @@ -81,7 +80,7 @@ /* Child is running here */ --- /dev/null 2016-01-22 17:30:55.000000000 -0500 +++ src/pfilter.c 2016-01-22 16:37:55.000000000 -0500 -@@ -0,0 +1,40 @@ +@@ -0,0 +1,41 @@ +#include "pfilter.h" +#include "conf.h" +#include "privs.h" @@ -95,7 +94,8 @@ +pfilter_init(void) +{ +#ifdef HAVE_BLACKLIST -+ blstate = blacklist_open(); ++ if (blstate == NULL) ++ blstate = blacklist_open(); +#endif +} +