diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | nscd/netgroupcache.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 86cd508e3c..dddda15323 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-09-25 DJ Delorie <dj@redhat.com> + + [BZ #22161] + * nscd/netgroupcache.c (addinnetgrX): Release read lock after + resetting timeout. + 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com> * sysdeps/ieee754/dbl-64/sincos32.h diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c index cd0c3ea19b..3ca96f8205 100644 --- a/nscd/netgroupcache.c +++ b/nscd/netgroupcache.c @@ -584,6 +584,8 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req, dh->timeout = timeout; dh->ttl = dataset->head.ttl; ++dh->nreloads; + if (cacheable) + pthread_rwlock_unlock (&db->lock); return timeout; } |