clarify the fd used for blacklisting.
Use STDIN_FILENO instead of 0 as the fd to blacklist_r(), since we use the former in ftpd.c
This commit is contained in:
parent
25ed0815a0
commit
fc9234654d
@ -1,4 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <blacklist.h>
|
||||
|
||||
#include "pfilter.h"
|
||||
@ -20,5 +21,5 @@ pfilter_notify(int what, const char *msg)
|
||||
if (blstate == NULL)
|
||||
return;
|
||||
|
||||
blacklist_r(blstate, what, 0, msg);
|
||||
blacklist_r(blstate, what, STDIN_FILENO, msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user