s4:libcli/smb_composite: use the options on the transport
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Nov 2014 13:30:31 +0000 (14:30 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 27 Nov 2014 15:45:05 +0000 (16:45 +0100)
These are the options which really belong to the connection
and might not be the the same as the hints given from the caller.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/libcli/smb_composite/connect.c

index 14b53e5d402c862645ee46b6a4dfde0837fb35dc..d87d5ecae275159e856e82e2cee8f9fc22839d60 100644 (file)
@@ -297,7 +297,7 @@ static NTSTATUS connect_send_negprot(struct composite_context *c,
        state->subreq = smb_raw_negotiate_send(state,
                                               state->transport->ev,
                                               state->transport,
-                                              io->in.options.max_protocol);
+                                              state->transport->options.max_protocol);
        NT_STATUS_HAVE_NO_MEMORY(state->subreq);
        tevent_req_set_callback(state->subreq, subreq_handler, c);
        state->stage = CONNECT_NEGPROT;