From 890fd8448640379a8c673068020331f6049a6416 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Nov 2024 13:57:46 +0100 Subject: [PATCH] s3:libads: let kerberos_kinit_password_ext() always initialize *ntstatus Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/libads/kerberos.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 0e6fe838cce..ae01b9fe353 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -132,6 +132,10 @@ int kerberos_kinit_password_ext(const char *given_principal, ZERO_STRUCT(my_creds); + if (ntstatus) { + *ntstatus = NT_STATUS_INTERNAL_ERROR; + } + if (cache_name == NULL) { DBG_DEBUG("Missing ccache for [%s] and config [%s]\n", given_principal,