You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/sysklogd/files/sysklogd-1.4.1-punt-SO_BSDC...

21 lines
641 B

http://lists.infodrom.org/infodrom-sysklogd/2006/0012.html
--- syslogd.c
+++ syslogd.c
@@ -1318,15 +1318,6 @@
close(fd);
return -1;
}
- /* We need to enable BSD compatibility. Otherwise an attacker
- * could flood our log files by sending us tons of ICMP errors.
- */
- if (setsockopt(fd, SOL_SOCKET, SO_BSDCOMPAT, \
- (char *) &on, sizeof(on)) < 0) {
- logerror("setsockopt(BSDCOMPAT), suspending inet");
- close(fd);
- return -1;
- }
/* We must not block on the network socket, in case a packet
* gets lost between select and recv, otherise the process
* will stall until the timeout, and other processes trying to