syslogd/sysklogd-1.4.1-no_SO_BSDCOMPAT.diff

19 lines
431 B
Diff

--- syslogd.c 2003/09/29 08:49:24 1.1
+++ syslogd.c 2003/09/29 08:50:05
@@ -1311,6 +1311,7 @@
close(fd);
return -1;
}
+#ifdef SO_BSDCOMPAT
/* We need to enable BSD compatibility. Otherwise an attacker
* could flood our log files by sending us tons of ICMP errors.
*/
@@ -1320,6 +1321,7 @@
close(fd);
return -1;
}
+#endif
#ifdef INET6
error = bind(fd, res->ai_addr, res->ai_addrlen);
freeaddrinfo(res);