utils: Fix 'net time' segfault.
commit553ac4f02de689a711dc2dd3b46c9e5a603dadfa
authorAndreas Schneider <asn@samba.org>
Tue, 13 Jan 2015 16:04:26 +0000 (13 17:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Jan 2015 19:53:09 +0000 (26 20:53 +0100)
tree0722be7b9add24f42ddfacd034de4a374261cfd2
parent8648ebfec9595cda7275dc62aca5c2ae1a3d4f27
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>
(cherry picked from commit 45829800eb3f3a8aeccfe7c1114dcf9df60371d5)
source3/utils/net_time.c