[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 04/11] Fix netmask checks for IPv6 in virSocketCheckNetmask



On Thu, Oct 21, 2010 at 07:17:18PM +0100, Daniel P. Berrange wrote:
> There was a typo in the IPv6 path of virSocketCheckNetmask which
> caused it to never execute.
> 
> * src/util/network.c: s/AF_INET/AF_INET6/ in virSocketCheckNetmask
> ---
>  src/util/network.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/util/network.c b/src/util/network.c
> index 4cb6bfe..de22ded 100644
> --- a/src/util/network.c
> +++ b/src/util/network.c
> @@ -268,7 +268,7 @@ int virSocketCheckNetmask(virSocketAddrPtr addr1, virSocketAddrPtr addr2,
>                  return(0);
>          }
>  
> -    } else if (addr1->data.stor.ss_family == AF_INET) {
> +    } else if (addr1->data.stor.ss_family == AF_INET6) {
>          virIPv6Addr t1, t2, tm;
>  
>          if ((getIPv6Addr(addr1, &t1) < 0) ||

  ACK :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]