wok-stable rev 12446

glibc: typo in CVE-2015-0235 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 29 11:47:30 2015 +0100 (2015-01-29)
parents 1c7b5ef9b071
children 0ef4ad6ff5da
files glibc/stuff/glibc-2.13-CVE-2015-0235.patch
line diff
     1.1 --- a/glibc/stuff/glibc-2.13-CVE-2015-0235.patch	Thu Jan 29 11:20:25 2015 +0100
     1.2 +++ b/glibc/stuff/glibc-2.13-CVE-2015-0235.patch	Thu Jan 29 11:47:30 2015 +0100
     1.3 @@ -19,7 +19,7 @@
     1.4   
     1.5         size_needed = (sizeof (*host_addr)
     1.6  -		     + sizeof (*h_addr_ptrs) + strlen (name) + 1);
     1.7 -+		     sizeof (*h_addr_ptrs)
     1.8 ++		     + sizeof (*h_addr_ptrs)
     1.9  +		     + sizeof (*h_allias_ptr) + strlen (name) + 1);
    1.10   
    1.11         if (buffer_size == NULL)
    1.12 @@ -48,7 +48,7 @@
    1.13   		      *h_errnop = HOST_NOT_FOUND;
    1.14  -		      if (buffer_size)
    1.15  +		      if (buffer_size == NULL)
    1.16 -+		        *status = NSS_STATUS_NOTFOUND:
    1.17 ++		        *status = NSS_STATUS_NOTFOUND;
    1.18  +		      else
    1.19   			*result = NULL;
    1.20   		      goto done;
    1.21 @@ -130,7 +130,7 @@
    1.22   		      *h_errnop = HOST_NOT_FOUND;
    1.23  -		      if (buffer_size)
    1.24  +		      if (buffer_size == NULL)
    1.25 -+		        *status = NSS_STATUS_NOTFOUND:
    1.26 ++		        *status = NSS_STATUS_NOTFOUND;
    1.27  +		      else
    1.28   			*result = NULL;
    1.29   		      goto done;