summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-04-24 12:36:04 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:01 +0200
commit39fedd27182d9e1985418ea79b86aef69999dd57 (patch)
tree2cb760d50b18d98622c9d7c90b49d9e9b7de21d5
parentd54c908ff5bef774f5cca038741558089ff6baeb (diff)
downloadsamba-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>
-rw-r--r--libcli/auth/credentials.c6
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) {