(INTERNAL): Fix return value computation once more.
authordrepper <drepper>
Fri, 13 Jun 2003 04:07:21 +0000 (04:07 +0000)
committerdrepper <drepper>
Fri, 13 Jun 2003 04:07:21 +0000 (04:07 +0000)
nss/getXXbyYY_r.c

index 3f873a5..06f2abe 100644 (file)
@@ -248,13 +248,12 @@ done:
   POSTPROCESS;
 #endif
   return (status == NSS_STATUS_SUCCESS ? 0
-         : (status != NSS_STATUS_TRYAGAIN
 #ifdef NEED_H_ERRNO
-            /* These functions only set errno if h_errno is
-               NETDB_INTERNAL.  */
-            && *h_errnop == NETDB_INTERNAL
+         /* These functions only set errno if h_errno is NETDB_INTERNAL.  */
+         : status == NSS_STATUS_TRYAGAIN && *h_errnop != NETDB_INTERNAL
+         ? EAGAIN
 #endif
-            ? errno : EAGAIN));
+         : errno);
 }