[USE_NSCD] (REENTRANT_NAME): Only retry contacting nscd if NOT_USENSCD_NAME > 0.
authordrepper <drepper>
Thu, 17 Apr 2003 08:38:39 +0000 (08:38 +0000)
committerdrepper <drepper>
Thu, 17 Apr 2003 08:38:39 +0000 (08:38 +0000)
nss/getXXbyYY_r.c

index ba6ffeb..632778d 100644 (file)
@@ -163,7 +163,7 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer,
 #endif
 
 #ifdef USE_NSCD
-  if (NOT_USENSCD_NAME && ++NOT_USENSCD_NAME > NSS_NSCD_RETRY)
+  if (NOT_USENSCD_NAME > 0 && ++NOT_USENSCD_NAME > NSS_NSCD_RETRY)
     NOT_USENSCD_NAME = 0;
 
   if (!NOT_USENSCD_NAME)