]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: let kerberos_kinit_password_ext() always initialize *ntstatus
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Nov 2024 12:57:46 +0000 (13:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2024 16:46:37 +0000 (16:46 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/kerberos.c

index 0e6fe838cceabef0de33bbfeba9b3111ade1fd59..ae01b9fe353eba8063df838e059a1fbec3f8cfd0 100644 (file)
@@ -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,