cli_connect_nb_send: don't segfault on host == NULL.
authorMichael Adam <obnox@samba.org>
Fri, 16 Jan 2015 15:18:45 +0000 (16:18 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 19 Jan 2015 05:48:05 +0000 (06:48 +0100)
commita0a254f74234bed6c9a0c71a5bda8254fa6f633f
tree6b75fc44cbe68e596f741b95859d7e9a881d6bf0
parent47155641cb48d39d3ee7d8b8962f5ed6b23617d4
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>
source3/libsmb/cliconnect.c