summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {