diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-11 12:32:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:38 -0500 |
commit | fa419c925524d05ef220c6442759961d28fb5771 (patch) | |
tree | 12c481b54bdb47534dd2f445f73d2d4814dd6bc1 /source4/rpc_server/samr | |
parent | 56d7b0dc8af0339ba08458ecc64c91928fdf53a7 (diff) | |
download | samba-fa419c925524d05ef220c6442759961d28fb5771.tar.gz samba-fa419c925524d05ef220c6442759961d28fb5771.tar.bz2 samba-fa419c925524d05ef220c6442759961d28fb5771.zip |
r2280: fixed the session key choice for ncacn_np and ncacn_ip_tcp in the rpc server
(This used to be commit 3b4ed24f4ba467a77bef8d6c25695fdbdb42b2ac)
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r-- | source4/rpc_server/samr/samr_password.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c index 852f564aef..436a53b7d9 100644 --- a/source4/rpc_server/samr/samr_password.c +++ b/source4/rpc_server/samr/samr_password.c @@ -683,11 +683,7 @@ NTSTATUS samr_set_password(struct dcesrv_call_state *dce_call, uint32_t new_pass_len; DATA_BLOB session_key = data_blob(NULL, 0); - session_key = data_blob(NULL,0); - - if (dce_call->conn->auth_state.session_info) { - session_key = dce_call->conn->auth_state.session_info->session_key; - } + session_key = dce_call->conn->transport_session_key; if (session_key.length == 0) { DEBUG(3,("Bad session key in samr_set_password\n")); @@ -731,11 +727,7 @@ NTSTATUS samr_set_password_ex(struct dcesrv_call_state *dce_call, DATA_BLOB session_key = data_blob(NULL, 0); struct MD5Context ctx; - session_key = data_blob(NULL,0); - - if (dce_call->conn->auth_state.session_info) { - session_key = dce_call->conn->auth_state.session_info->session_key; - } + session_key = dce_call->conn->transport_session_key; if (session_key.length == 0) { DEBUG(3,("Bad session key in samr_set_password\n")); |