]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-sasl: sasl-server-mech-gssapi - Allow krb5_keytab setting to be NULL
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 20 Aug 2025 05:27:55 +0000 (07:27 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/lib-sasl/sasl-server-mech-gssapi.c

index 728c62bbffa208d2c4ed0d72c5c9124d56540978..105b0b847234ed6a0ff64a2a5153afb33a315813 100644 (file)
@@ -719,7 +719,7 @@ mech_gssapi_register(struct sasl_server_instance *sinst,
 
        const char *path = set->krb5_keytab;
 
-       if (*path != '\0') {
+       if (path != NULL && *path != '\0') {
                /* Environment may be used by Kerberos 5 library directly */
                env_put("KRB5_KTNAME", path);
 #ifdef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY