syslogd/sysklogd-1.4.1-no_SO_BSDCOMPAT.diff
OBS User autobuild 2904bd5cd4 Accepting request 25079 from Base:System
Copy from Base:System/syslogd based on submit request 25079 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/25079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=22
2009-11-27 13:54:43 +00:00

21 lines
613 B
Diff

Index: syslogd.c
===================================================================
--- syslogd.c.orig 2009-11-24 18:12:53.926309000 +0100
+++ syslogd.c 2009-11-24 18:12:54.408310000 +0100
@@ -1305,6 +1305,7 @@ static int create_inet_socket()
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.
*/
@@ -1314,6 +1315,7 @@ static int create_inet_socket()
close(fd);
return -1;
}
+#endif
#ifdef INET6
error = bind(fd, res->ai_addr, res->ai_addrlen);
freeaddrinfo(res);