summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_dblookup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c
index 6484a16..5839bd4 100644
--- a/usr.sbin/ypserv/yp_dblookup.c
+++ b/usr.sbin/ypserv/yp_dblookup.c
@@ -600,8 +600,13 @@ int yp_next_record(dbp,key,data,all,allow)
rval = yp_first_record(dbp,key,data,allow);
if (rval == YP_NOKEY)
return(YP_NOMORE);
- else
+ else {
+#ifdef DB_CACHE
+ qhead.cqh_first->dbptr->key = key->data;
+ qhead.cqh_first->dbptr->size = key->size;
+#endif
return(rval);
+ }
}
if (ypdb_debug)
OpenPOWER on IntegriCloud