diff --git a/dhcp-bindtodevice-inet6.patch b/dhcp-bindtodevice-inet6.patch index d08cffb..ff548d7 100644 --- a/dhcp-bindtodevice-inet6.patch +++ b/dhcp-bindtodevice-inet6.patch @@ -6,7 +6,7 @@ diff -up dhcp-4.2.5/common/socket.c.bindtodevice_inet6 dhcp-4.2.5/common/socket. #if defined(SO_BINDTODEVICE) /* Bind this socket to this interface. */ - if ((local_family != AF_INET6) && (info->ifp != NULL) && -+ if ((*do_multicast == 0) && (info->ifp != NULL) && ++ if (((do_multicast == 0)||(*do_multicast == 0)) && (info->ifp != NULL) && setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, (char *)(info -> ifp), sizeof(*(info -> ifp))) < 0) { log_fatal("setsockopt: SO_BINDTODEVICE: %m"); diff --git a/dhcp.spec b/dhcp.spec index eff95e0..47b4d3a 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -18,7 +18,7 @@ Summary: Dynamic host configuration protocol software Name: dhcp Version: 4.2.5 -Release: 21%{?dist} +Release: 22%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -615,9 +615,12 @@ done %changelog +* Wed Sep 18 2013 Jiri Popelka - 12:4.2.5-22 +- fix segfault introduced with previous commit + * Tue Sep 17 2013 Jiri Popelka - 12:4.2.5-21 - 12-dhcpd: wait a few seconds before restarting services (#1003695) -- another solution for #1001742 (1005814#c10) +- another solution for #1001742 (#1005814#c10) * Thu Sep 12 2013 Jiri Popelka - 12:4.2.5-20 - bind DHCPv6 client to link-local address instead of 0 address (#1001742)