summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-07-24 17:50:35 +1200
committerNoel Power <npower@samba.org>2019-11-14 16:12:40 +0000
commit220cf67776f16467488805ecd6d1905c708eaa17 (patch)
tree6efb6c43946f707358699ff7f58476c012c2fe04
parent963a639101f4c55467e33667a698fffb350a931f (diff)
downloadsamba-220cf67776f16467488805ecd6d1905c708eaa17.tar.gz
s4/rpc/dcerpc_connect: no crash on NULL dest_host
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c2
1 files changed, 1 insertions, 1 deletions
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;
}