Adjust pointers to triplets in netgroup query data (BZ #16474)
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 24 Jan 2014 08:21:15 +0000 (13:51 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 24 Jan 2014 08:21:15 +0000 (13:51 +0530)
commit5d41dadf31bc8a2f9c34c40d52a442d3794e405c
tree1033a8751da91bf20f3f870374fb15fe76aa797b
parent0bad441c77fa4ff382dd3990542dcf52052b2121
Adjust pointers to triplets in netgroup query data (BZ #16474)

The _nss_*_getnetgrent_r query populates the netgroup results in the
allocated buffer and then sets the result triplet to point to strings
in the buffer.  This is a problem when the buffer is reallocated since
the pointers to the triplet strings are no longer valid.  The pointers
need to be adjusted so that they now point to strings in the
reallocated buffer.
ChangeLog
NEWS
nscd/netgroupcache.c