utils: Fix 'net time' segfault.
commite38f3eac50dc24fe18ac0384b8008fe3b20be615
authorAndreas Schneider <asn@samba.org>
Tue, 13 Jan 2015 16:04:26 +0000 (13 17:04 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 24 Jan 2015 21:16:12 +0000 (24 22:16 +0100)
tree997180405f1d4b950a7b26433df478df05298cfa
parenta5d30bd2ecd8269de1071f535209cc2a33c5cbcd
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