nwrap: move setting of ai_{flags|socktype|protocol} into nwrap_convert_he_ai
authorMichael Adam <obnox@samba.org>
Thu, 12 Nov 2015 10:15:03 +0000 (11:15 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:31 +0000 (12:25 +0100)
commit062c97be191ef6b912af46e209941e858b0be3fd
tree39d575cac63df36fc564b446a9cd43c23566db8f
parenta66606cd0215b973d768b61444858db38c501f69
nwrap: move setting of ai_{flags|socktype|protocol} into nwrap_convert_he_ai

This makes the code in nwrap_getaddrinfo() more readable
and also treats all ai stuctures in the linked list, not
just the first one!

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/nss_wrapper.c