forked from pool/squid
252937dc51
- Update to 3.5.4 - Refresh patches OBS-URL: https://build.opensuse.org/request/show/308402 OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=76
17 lines
782 B
Diff
17 lines
782 B
Diff
Index: helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
|
|
===================================================================
|
|
--- helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc.orig
|
|
+++ helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
|
|
@@ -535,7 +535,11 @@ main(int argc, char *const argv[])
|
|
keytab_name_env = getenv("KRB5_KTNAME");
|
|
if (!keytab_name_env) {
|
|
ret = krb5_init_context(&context);
|
|
+#if HAVE_PAC_SUPPORT || HAVE_KRB5_MEMORY_KEYTAB
|
|
if (!check_k5_err(context, "krb5_init_context", ret)) {
|
|
+#else
|
|
+ if (0 == ret) { // no error continue...
|
|
+#endif
|
|
krb5_kt_default_name(context, default_keytab, MAXPATHLEN);
|
|
}
|
|
keytab_name = xstrdup(default_keytab);
|