openbsd-ports/security/clamav/patches/patch-clamav_milter-clamav_milter_c
mbalmer e2e2236f4d Update ClamAV to version 0.91.2.
Note to -stable ports maintainers:  This should probably be put into -stable
since the ClamAV people do not provide virus data to outdated scan engines.

ok simon
2007-08-25 10:08:28 +00:00

21 lines
809 B
Plaintext

--- clamav-milter/clamav-milter.c.orig Mon Aug 20 23:01:19 2007
+++ clamav-milter/clamav-milter.c Sat Aug 25 09:35:06 2007
@@ -1116,7 +1116,7 @@ main(int argc, char **argv)
* uid == 0 for that
*/
on = 1;
- if(setsockopt(broadcastSock, SOL_SOCKET, SO_BROADCAST, (int *)&on, sizeof(on)) < 0) {
+ if(setsockopt(broadcastSock, SOL_SOCKET, 0, (int *)&on, sizeof(on)) < 0) {
perror("setsockopt");
return EX_UNAVAILABLE;
}
@@ -1138,7 +1138,7 @@ main(int argc, char **argv)
memset(&ifr, '\0', sizeof(struct ifreq));
strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1);
- if(setsockopt(broadcastSock, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr)) < 0) {
+ if(setsockopt(broadcastSock, SOL_SOCKET, 0, &ifr, sizeof(ifr)) < 0) {
perror(iface);
return EX_CONFIG;
}