From 150c1ed49627cd73c02c4dc8a2e33df653d2aeb1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 Jun 1999 13:09:46 +0000 Subject: [PATCH] Add "notfound" data to cache, not iov pointer. --- nscd/grpcache.c | 2 +- nscd/hstcache.c | 2 +- nscd/pwdcache.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.3