CVE-2016-2115: s4:libcli/raw: pass the minprotocol to smb_raw_negotiate*()
[samba.git] / source4 / libcli / smb_composite / connect.c
index d87d5ecae275159e856e82e2cee8f9fc22839d60..fffa768ac977c2291dc44a0e0421e49849146f0d 100644 (file)
@@ -297,6 +297,7 @@ static NTSTATUS connect_send_negprot(struct composite_context *c,
        state->subreq = smb_raw_negotiate_send(state,
                                               state->transport->ev,
                                               state->transport,
+                                              state->transport->options.min_protocol,
                                               state->transport->options.max_protocol);
        NT_STATUS_HAVE_NO_MEMORY(state->subreq);
        tevent_req_set_callback(state->subreq, subreq_handler, c);