r100: remember the user session key during session setup so it can be used in various...
[samba.git] / source4 / libcli / raw / clisession.c
index c5d4888089cbef828eb2e146e2bf1b72bb0efcf7..1c0af77d11dddea5e79f0fc7860111b7c76ef95a 100644 (file)
@@ -247,6 +247,8 @@ static void setup_nt1_signing(struct cli_transport *transport, const char *passw
        SMBsesskeygen_ntv1(nt_hash, NULL, session_key);
        nt_response = nt_blob(password, transport->negotiate.secblob);
 
+       cli_transport_set_session_key(transport, session_key);
+
        cli_transport_simple_set_signing(transport, session_key, nt_response);
 }