From c913d72625f3b8988b878fc851b0c84a2b52fe10 Mon Sep 17 00:00:00 2001 From: msweet Date: Thu, 19 Dec 2013 20:29:32 +0000 Subject: [PATCH] Don't try to access non-existent keychain. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11479 a1ca3aef-8c08-0410-bb20-df032aa958be --- cups/tls-darwin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cups/tls-darwin.c b/cups/tls-darwin.c index 35fcc0c83..33a70cd5b 100644 --- a/cups/tls-darwin.c +++ b/cups/tls-darwin.c @@ -1121,7 +1121,11 @@ http_tls_start(http_t *http) /* I - HTTP connection */ DEBUG_printf(("7http_tls_start(http=%p)", http)); +#ifdef HAVE_SECKEYCHAINOPEN if (http->mode == _HTTP_MODE_SERVER && !tls_keychain) +#else + if (http->mode == _HTTP_MODE_SERVER) +#endif /* HAVE_SECKEYCHAINOPEN */ { DEBUG_puts("4http_tls_start: cupsSetServerCredentials not called."); http->error = errno = EINVAL; -- 2.39.5