about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/getXXbyYY_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 630cea4158..58cf29300f 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -243,7 +243,7 @@ done:
   POSTPROCESS;
 #endif
   return (status == NSS_STATUS_SUCCESS
-	  ? 0 : (status == NSS_STATUS_TRYAGAIN ? EAGAIN : ENOENT));
+	  ? 0 : (status == NSS_STATUS_TRYAGAIN ? errno : ENOENT));
 }