The unified diff between revisions [87286233..] and [fdd44441..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'svr-main.c'
#
#
# patch "svr-main.c"
# from [956679879949d5e02205ac66872e03986c76fc61]
# to [2fc23167fe2aadc2a1fd5199fb071b742ca41ce1]
#
============================================================
--- svr-main.c 956679879949d5e02205ac66872e03986c76fc61
+++ svr-main.c 2fc23167fe2aadc2a1fd5199fb071b742ca41ce1
@@ -28,6 +28,7 @@
#include "buffer.h"
#include "signkey.h"
#include "runopts.h"
+#include "blacklist.h"
static int listensockets(int *sock, int sockcount, int *maxfd);
static void sigchld_handler(int dummy);
@@ -238,6 +239,11 @@ void main_noinetd() {
}
}
+ if (is_blacklisted(getaddrstring(&remoteaddr, 0)) == 1) {
+ close(childsock);
+ continue;
+ }
+
if (j == MAX_UNAUTH_CLIENTS) {
/* no free connections */
/* TODO - possibly log, though this would be an easy way