From: Douglas Bagnall Date: Wed, 24 Jul 2019 05:50:35 +0000 (+1200) Subject: s4/rpc/dcerpc_connect: no crash on NULL dest_host X-Git-Tag: talloc-2.3.1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=220cf67776f16467488805ecd6d1905c708eaa17;p=thirdparty%2Fsamba.git s4/rpc/dcerpc_connect: no crash on NULL dest_host Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c index 4c0ed15396f..ad355fc3c4d 100644 --- a/source4/librpc/rpc/dcerpc_connect.c +++ b/source4/librpc/rpc/dcerpc_connect.c @@ -226,7 +226,7 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CT target_hostname = conn->in.dest_host; } - if (is_ipaddress(conn->in.dest_host)) { + if (conn->in.dest_host != NULL && is_ipaddress(conn->in.dest_host)) { dest_address = conn->in.dest_host; }