From: Ulrich Drepper Date: Thu, 24 Jun 1999 13:09:46 +0000 (+0000) Subject: Add "notfound" data to cache, not iov pointer. X-Git-Tag: cvs/glibc_2-1-2~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=150c1ed49627cd73c02c4dc8a2e33df653d2aeb1;p=thirdparty%2Fglibc.git Add "notfound" data to cache, not iov pointer. --- diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 1c6b1aff3fc..a9de8599a5e 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -104,7 +104,7 @@ cache_addgr (struct database *db, int fd, request_header *req, void *key, /* Now get the lock to safely insert the records. */ pthread_rwlock_rdlock (&db->lock); - cache_add (req->type, copy, req->key_len, &iov_notfound, + cache_add (req->type, copy, req->key_len, ¬found, sizeof (notfound), (void *) -1, 0, t, db); pthread_rwlock_unlock (&db->lock); diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 15459752bbd..7dc38ebd9cb 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -115,7 +115,7 @@ cache_addhst (struct database *db, int fd, request_header *req, void *key, /* Now get the lock to safely insert the records. */ pthread_rwlock_rdlock (&db->lock); - cache_add (req->type, copy, req->key_len, &iov_notfound, + cache_add (req->type, copy, req->key_len, ¬found, sizeof (notfound), (void *) -1, 0, t, db); pthread_rwlock_unlock (&db->lock); diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index 5bf89a75bac..e9ee9e05dc9 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -111,7 +111,7 @@ cache_addpw (struct database *db, int fd, request_header *req, void *key, /* Now get the lock to safely insert the records. */ pthread_rwlock_rdlock (&db->lock); - cache_add (req->type, copy, req->key_len, &iov_notfound, + cache_add (req->type, copy, req->key_len, ¬found, sizeof (notfound), (void *) -1, 0, t, db); pthread_rwlock_unlock (&db->lock);