diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-13 17:24:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-13 17:24:41 +0000 |
commit | aadd7d9d2645450f757ea99234192abb9aa7e244 (patch) | |
tree | 8a3cf55b948b80b58707cf864b7b97cbee2e66e2 /nscd/nscd_helper.c | |
parent | 407c4b9a19fc59dfea131c08b3075108ecfab8a3 (diff) | |
download | glibc-aadd7d9d2645450f757ea99234192abb9aa7e244.tar.gz glibc-aadd7d9d2645450f757ea99234192abb9aa7e244.tar.xz glibc-aadd7d9d2645450f757ea99234192abb9aa7e244.zip |
Update.
2004-09-13 Thorsten Kukuk <kukuk@suse.de> * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services. * nscd/nscd.init: Fix path to socket.
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r-- | nscd/nscd_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index ff27b0797e..e40500c83c 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -141,11 +141,11 @@ get_mapping (request_type type, const char *key, if (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, 0)) != keylen) goto out_close2; + mapfd = *(int *) CMSG_DATA (cmsg); + if (CMSG_FIRSTHDR (&msg)->cmsg_len != CMSG_LEN (sizeof (int))) goto out_close; - mapfd = *(int *) CMSG_DATA (cmsg); - struct stat64 st; if (strcmp (resdata, key) != 0 || fstat64 (mapfd, &st) != 0 |