Merge pull request #56401 from evillique/kerberos-kafka-segfault

Fix segfault during Kerberos initialization
This commit is contained in:
Nikolay Degterinsky 2023-11-13 17:33:08 +01:00 committed by GitHub
commit ae6b4e62b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ private:
krb5_ccache defcache = nullptr;
krb5_get_init_creds_opt * options = nullptr;
// Credentials structure including ticket, session key, and lifetime info.
krb5_creds my_creds;
krb5_creds my_creds {};
krb5_keytab keytab = nullptr;
krb5_principal defcache_princ = nullptr;
String fmtError(krb5_error_code code) const;