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
21 lines
613 B
Diff
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);
|