summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-29 20:13:22 +0200
committerGünther Deschner <gd@samba.org>2008-04-29 20:22:02 +0200
commit7a6f33e3d8e3913edfd6ed86d5119ad18c407c65 (patch)
treec61a4f2caccb30495b9c8edd3316916a2ccb5547 /source3/rpc_server
parentecab49a4d3db06be9f225804474cb6c514e24f45 (diff)
downloadsamba-7a6f33e3d8e3913edfd6ed86d5119ad18c407c65.tar.gz
samba-7a6f33e3d8e3913edfd6ed86d5119ad18c407c65.tar.bz2
samba-7a6f33e3d8e3913edfd6ed86d5119ad18c407c65.zip
_netr_LogonSamLogon: fix lm session key length.
Thanks Volker for pointing this out. Guenther (This used to be commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 4664e8d1ba..203f5382a8 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -1109,7 +1109,7 @@ NTSTATUS _netr_LogonSamLogon(pipes_struct *p,
}
memcpy(pipe_session_key, p->auth.a_u.schannel_auth->sess_key, 16);
}
- SamOEMhash(lm_session_key.key, pipe_session_key, 16);
+ SamOEMhash(lm_session_key.key, pipe_session_key, 8);
memset(pipe_session_key, '\0', 16);
}