1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

libcli/auth: make netlogon_creds_crypt_samlogon_validation more robust

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-04-24 12:36:04 +02:00 committed by Andreas Schneider
parent d54c908ff5
commit 39fedd2718

View File

@ -493,8 +493,12 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
bool encrypt)
{
static const char zeros[16];
struct netr_SamBaseInfo *base = NULL;
if (validation == NULL) {
return;
}
switch (validation_level) {
case 2:
if (validation->sam2) {