]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/tls-sspi.c
Fix several issues with client.conf, CUPS_SERVER, and the "-h" option of most
[thirdparty/cups.git] / cups / tls-sspi.c
index a819a961ecd871c9b304262f0619d19db027bac7..e8345e7313a95457c1ca65e2294e5bb38442c39f 100644 (file)
@@ -4,7 +4,7 @@
  * TLS support for CUPS on Windows using the Security Support Provider
  * Interface (SSPI).
  *
- * Copyright 2010-2014 by Apple Inc.
+ * Copyright 2010-2015 by Apple Inc.
  *
  * These coded instructions, statements, and computer programs are the
  * property of Apple Inc. and are protected by Federal copyright
@@ -262,6 +262,9 @@ httpCredentialsGetTrust(
   if (!cert)
     return (HTTP_TRUST_UNKNOWN);
 
+  if (cg->any_root < 0)
+    _cupsSetDefaults();
+
   if (cg->any_root)
     certFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA;