utils: Fix 'net time' segfault.
authorAndreas Schneider <asn@samba.org>
Tue, 13 Jan 2015 16:04:26 +0000 (17:04 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 19 Jan 2015 05:48:05 +0000 (06:48 +0100)
commit45829800eb3f3a8aeccfe7c1114dcf9df60371d5
tree54bee344d75b417d7da62c9ac459cc640f3d5aa7
parenta0a254f74234bed6c9a0c71a5bda8254fa6f633f
utils: Fix 'net time' segfault.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11058

This is part two of the bugfix. Make sure we pass the IP we found to
cli_servertime(). Hence we always pass at least one of name or IP.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/net_time.c