nwrap: Fix memory leak in nwrap_gethostbyname_r()
authorRobin Hack <hack.robin@gmail.com>
Mon, 12 Oct 2015 08:36:04 +0000 (10:36 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
commit200f5bf138ede63ad446c70ac291e79020262054
treec41535218e77cf6caf839d7bbef4a87e556a1fb3
parent43d470a06fdc55f8ad2e91d92572c9125da8cf3d
nwrap: Fix memory leak in nwrap_gethostbyname_r()

Fix reimplements how memory is used.
Results from vector are copied to user provided buf.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/nss_wrapper.c