]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libcli: remove unused dest_ports from smb_connect_nego_send()
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Apr 2025 06:40:24 +0000 (08:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Apr 2025 10:17:29 +0000 (10:17 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/libcli/smb_composite/connect_nego.c
source4/libcli/smb_composite/smb_composite.h
source4/librpc/rpc/dcerpc_connect.c

index b3a7f6daaaf6df5266e2b8d94a280ecfa5e73e41..47109ae7314a05f4ba5776950a54ef2cdbf61399 100644 (file)
@@ -35,7 +35,6 @@ struct smb_connect_nego_state {
        struct smbcli_options options;
        const char *dest_hostname;
        const char *dest_address;
-       const char **dest_ports;
        const char *target_hostname;
        struct nbt_name calling, called;
        struct smbXcli_conn *conn;
@@ -51,7 +50,6 @@ struct tevent_req *smb_connect_nego_send(TALLOC_CTX *mem_ctx,
                                         const char *socket_options,
                                         const char *dest_hostname,
                                         const char *dest_address, /* optional */
-                                        const char **dest_ports,
                                         const char *target_hostname,
                                         const char *called_name,
                                         const char *calling_name)
@@ -71,7 +69,6 @@ struct tevent_req *smb_connect_nego_send(TALLOC_CTX *mem_ctx,
        state->socket_options = socket_options;
        state->dest_hostname = dest_hostname;
        state->dest_address = dest_address;
-       state->dest_ports = dest_ports;
        state->target_hostname = target_hostname;
 
        make_nbt_name_client(&state->calling, calling_name);
index 781c85954d130154b7f2ed396d8946d02c3bfe41..1b507fd8c374c5acbed665aeb916fd8c525b79ac 100644 (file)
@@ -115,7 +115,6 @@ struct tevent_req *smb_connect_nego_send(TALLOC_CTX *mem_ctx,
                                         const char *socket_options,
                                         const char *dest_hostname,
                                         const char *dest_address, /* optional */
-                                        const char **dest_ports,
                                         const char *target_hostname,
                                         const char *called_name,
                                         const char *calling_name);
index 7745b699a62ad15e4029001a29a48ce53bd0e0d9..ae9675385b12da4bcf9a4db21d9790175f89e6e7 100644 (file)
@@ -240,7 +240,6 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CT
                                       conn->in.socket_options,
                                       conn->in.dest_host,
                                       dest_address,
-                                      conn->in.dest_ports,
                                       target_hostname,
                                       conn->in.called_name,
                                       calling_name);