aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r--nscd/nscd_helper.c4
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