diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-04-24 12:36:04 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-08-05 10:30:01 +0200 |
commit | 39fedd27182d9e1985418ea79b86aef69999dd57 (patch) | |
tree | 2cb760d50b18d98622c9d7c90b49d9e9b7de21d5 /libcli | |
parent | d54c908ff5bef774f5cca038741558089ff6baeb (diff) | |
download | samba-39fedd27182d9e1985418ea79b86aef69999dd57.tar.gz samba-39fedd27182d9e1985418ea79b86aef69999dd57.tar.bz2 samba-39fedd27182d9e1985418ea79b86aef69999dd57.zip |
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>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/credentials.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index fb77ede197..5c8b25b7a4 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -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) { |