mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
* nscd/nscd_helper.c (get_mapping): Handle short replies instead
of crashing. When this is the case or if the reply is malformed, don't try to close the new file descriptor since it does not exist. Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
This commit is contained in:
parent
40f57573d0
commit
5da4373cfd
@ -1,3 +1,11 @@
|
||||
2007-05-29 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nscd/nscd_helper.c (get_mapping): Handle short replies instead
|
||||
of crashing. When this is the case or if the reply is malformed,
|
||||
don't try to close the new file descriptor since it does not
|
||||
exist.
|
||||
Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
|
||||
|
||||
2007-05-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
|
||||
|
@ -271,9 +271,10 @@ get_mapping (request_type type, const char *key,
|
||||
|
||||
mapfd = *(int *) CMSG_DATA (cmsg);
|
||||
|
||||
if (__builtin_expect (CMSG_FIRSTHDR (&msg)->cmsg_len
|
||||
!= CMSG_LEN (sizeof (int)), 0))
|
||||
goto out_close;
|
||||
if (__builtin_expect (CMSG_FIRSTHDR (&msg) == NULL
|
||||
|| (CMSG_FIRSTHDR (&msg)->cmsg_len
|
||||
!= CMSG_LEN (sizeof (int))), 0))
|
||||
goto out_close2;
|
||||
|
||||
struct stat64 st;
|
||||
if (__builtin_expect (strcmp (resdata, key) != 0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user