[SSSD] [PATCH] NSS: Add sss_readrep_copy_string

Stephen Gallagher sgallagh at redhat.com
Tue Jan 10 01:23:18 UTC 2012


There were many places in the client code where we were
duplicating a loop to copy data in from the response buffer. This
patch turns those loops into a function for easier maintenance and
easier-to-read *readrep() routines.

The netgroup code required the addition of a "temp" string while doing
the copying, since the netgroup struct requires a (const char *) and the
buffer manipulation was done using (char *).

This patch follows "[PATCH] NSS: Validate input string lengths" in my
tree but will apply without it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-NSS-Add-sss_readrep_copy_string.patch
Type: text/x-patch
Size: 15492 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120109/3ba9c233/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120109/3ba9c233/attachment.sig>


More information about the sssd-devel mailing list