1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s4:rpc_server: Return the status code from dcesrv_transport_session_key()

Normally this returns the right status code, which normally is:

   NT_STATUS_NO_USER_SESSION_KEY

This is consitent with the source3 samr server implmentation.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>

Autobuild-User(master): Isaac Boukris <iboukris@samba.org>
Autobuild-Date(master): Wed Nov 20 22:29:35 UTC 2019 on sn-devel-184
This commit is contained in:
Andreas Schneider 2019-11-15 13:34:08 +01:00 committed by Isaac Boukris
parent e7cab18c8b
commit 9e51bb77f8

View File

@ -599,10 +599,9 @@ NTSTATUS samr_set_password(struct dcesrv_call_state *dce_call,
nt_status = dcesrv_transport_session_key(dce_call, &session_key);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(3,("samr: failed to get session key: %s "
"=> NT_STATUS_WRONG_PASSWORD\n",
nt_errstr(nt_status)));
return NT_STATUS_WRONG_PASSWORD;
DBG_NOTICE("samr: failed to get session key: %s\n",
nt_errstr(nt_status));
return nt_status;
}
_session_key = (gnutls_datum_t) {