]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/rpc/dcerpc_connect: no crash on NULL dest_host
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 24 Jul 2019 05:50:35 +0000 (17:50 +1200)
committerNoel Power <npower@samba.org>
Thu, 14 Nov 2019 16:12:40 +0000 (16:12 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
source4/librpc/rpc/dcerpc_connect.c

index 4c0ed15396f42abb757430b7a86d258dbfc99c98..ad355fc3c4d104e87a6b3a28dc3544f137de1018 100644 (file)
@@ -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;
        }