From 95479dc273d889da860a94fc28cb5683d98189e1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 29 Mar 2004 20:17:33 +0000 Subject: Update. 2004-03-29 Ulrich Drepper * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND. --- nss/getXXbyYY_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/getXXbyYY_r.c') diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c index 999df4198d..b17f33c8e0 100644 --- a/nss/getXXbyYY_r.c +++ b/nss/getXXbyYY_r.c @@ -246,7 +246,7 @@ done: #endif int res; - if (status == NSS_STATUS_SUCCESS) + if (status == NSS_STATUS_SUCCESS || status == NSS_STATUS_NOTFOUND) res = 0; /* Don't pass back ERANGE if this is not for a too-small buffer. */ else if (errno == ERANGE && status != NSS_STATUS_TRYAGAIN) -- cgit 1.4.1