cli_connect_nb_send: don't segfault on host == NULL.
commit8648ebfec9595cda7275dc62aca5c2ae1a3d4f27
authorMichael Adam <obnox@samba.org>
Fri, 16 Jan 2015 15:18:45 +0000 (16 16:18 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Jan 2015 19:53:09 +0000 (26 20:53 +0100)
tree9f4aff5946cb1b8f6fd058bd7883b84a0b544cf7
parent549d320bd9f2b8d8e380bdb174d5f8e5864f6f63
cli_connect_nb_send: don't segfault on host == NULL.

The functions called futher down can cope with host == NULL.

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

This is part one of the bugfix:
This ensures that it is enough to pass one of host or address to the function.

Pair-Programmed-With: Andreas Schneider <asn@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit a0a254f74234bed6c9a0c71a5bda8254fa6f633f)
source3/libsmb/cliconnect.c