summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2021-09-07 09:29:23 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2021-09-07 09:29:23 -0400
commitfd5021277412ed47e9b4fa344396119c25f47ce6 (patch)
tree83571c7a7ef15b71d2f3b38bbd59c6a433336127
parent3499fe16da4026511f775946d7a43eef9f903400 (diff)
downloadcups-fd5021277412ed47e9b4fa344396119c25f47ce6.tar.gz
Fix potential deadlock (OpenPrinting #243)
-rw-r--r--cups/tls-darwin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cups/tls-darwin.c b/cups/tls-darwin.c
index b3bd50bf8..0741a320e 100644
--- a/cups/tls-darwin.c
+++ b/cups/tls-darwin.c
@@ -1,7 +1,8 @@
/*
* TLS support code for CUPS on macOS.
*
- * Copyright © 2007-2019 by Apple Inc.
+ * Copyright © 2021 by OpenPrinting
+ * Copyright © 2007-2021 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -291,7 +292,7 @@ cupsMakeServerCredentials(
else
tls_selfsigned = ident;
- _cupsMutexLock(&tls_mutex);
+ _cupsMutexUnlock(&tls_mutex);
# if 0 /* Someday perhaps SecItemCopyMatching will work for identities, at which point */
CFTypeRef itemKeys[] = { kSecClass, kSecAttrLabel, kSecValueRef };