wok-6.x rev 17547

glibc: typo in CVE-2015-0235 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 29 11:47:06 2015 +0100 (2015-01-29)
parents 6f704cecf2c4
children 705629de834c
files glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch
line diff
     1.1 --- a/glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch	Thu Jan 29 11:14:15 2015 +0100
     1.2 +++ b/glibc/stuff/glibc-2.14.1-CVE-2015-0235.patch	Thu Jan 29 11:47:06 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;