diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1997-01-20 03:33:36 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1997-01-20 03:33:36 +0000 |
| commit | 559605f1ec4e088e7c0ab38d58620477dec566e3 (patch) | |
| tree | 523f519337a8fa1dc3be11d9a05cf732b0a90a6c /usr.sbin/ypserv | |
| parent | 6e20a16589c29d4f8962fb4d985a2e99acd1838a (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ypserv')
| -rw-r--r-- | usr.sbin/ypserv/yp_dblookup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_dblookup.c b/usr.sbin/ypserv/yp_dblookup.c index 6484a1625361..5839bd4fc318 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) |
