torture: Fix winbind.wbclient.ResolveWinsByIp test
authorMichael Adam <obnox@samba.org>
Fri, 18 Dec 2015 18:11:43 +0000 (19:11 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:26 +0000 (12:25 +0100)
commit71ffd3b90b5c19ba8596dee86ed49881a22371cc
tree7c6ef22257b20cc6295fec9d85008f01d841e27c
parentfcb1ca86542831f226de4a8a0b8e51d6831d8895
torture: Fix winbind.wbclient.ResolveWinsByIp test

The test gets handed a name, so we first need
to resolve the name to an IP before we can
pass that on to ResolveWinsByIp.

Bug uncovered by the new nss_wrapper code (1.1.2).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
nsswitch/libwbclient/tests/wbclient.c