nwrap: rewrite the loop for duplication ai entries if socktype not given
commitd198cdaefde851db80ff9e179bbecb5185c0ff82
authorMichael Adam <obnox@samba.org>
Thu, 12 Nov 2015 10:35:07 +0000 (12 11:35 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:31 +0000 (11 12:25 +0100)
tree9cead2c8afdc32e7d6844ee7b0800a45dc5c1a51
parentab2f41bed6e239ce09ed593995b473e8e0800599
nwrap: rewrite the loop for duplication ai entries if socktype not given

This loop reads much more naturally now. It inserts the
duplicated entry right after the entrie that is being
duplicated. It does not need a ai_tail any more.

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