diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-07-24 17:50:35 +1200 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2019-11-14 16:12:40 +0000 |
commit | 220cf67776f16467488805ecd6d1905c708eaa17 (patch) | |
tree | 6efb6c43946f707358699ff7f58476c012c2fe04 | |
parent | 963a639101f4c55467e33667a698fffb350a931f (diff) | |
download | samba-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.c | 2 |
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; } |