]> git.ipfire.org Git - thirdparty/glibc.git/commit
Avoid race in nscd
authorAndreas Jaeger <aj@suse.de>
Tue, 15 May 2012 18:35:53 +0000 (20:35 +0200)
committerAndreas Jaeger <aj@suse.de>
Tue, 15 May 2012 18:37:05 +0000 (20:37 +0200)
commit509072a0f7f8a37bedf61a78c0cdd7783368c65a
tree32ac15ad1aba98673f42bc475d053fb1b4b3b864
parentba75122dd93b6188d1be446df0502c4cbe5c32e6
Avoid race in nscd

2012-05-15  Jeff Law  <law@redhat.com>
            Andreas Jaeger  <aj@suse.de>

        [BZ #13594]
        * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
        out from...
        * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
        * nscd/nscd-client.h: Add __nscd_acquire_maplock.
        * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
        code changing __hst_map_handle.map.
ChangeLog
NEWS
nscd/nscd-client.h
nscd/nscd_gethst_r.c
nscd/nscd_helper.c