2010-01-19 10:40:12 +00:00
|
|
|
--- syslogd.c
|
|
|
|
+++ syslogd.c 2003-09-29 08:50:05.000000000 +0000
|
2010-01-06 17:06:41 +00:00
|
|
|
@@ -1305,6 +1305,7 @@ static int create_inet_socket()
|
2006-12-18 23:17:53 +00:00
|
|
|
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.
|
|
|
|
*/
|
2010-01-06 17:06:41 +00:00
|
|
|
@@ -1314,6 +1315,7 @@ static int create_inet_socket()
|
2006-12-18 23:17:53 +00:00
|
|
|
close(fd);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
#ifdef INET6
|
|
|
|
error = bind(fd, res->ai_addr, res->ai_addrlen);
|
|
|
|
freeaddrinfo(res);
|