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:
lukem 2019-01-29 23:19:30 +00:00
parent 25ed0815a0
commit fc9234654d

View File

@ -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);
}