]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix potential deadlock (OpenPrinting #243)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 7 Sep 2021 13:29:23 +0000 (09:29 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 7 Sep 2021 13:29:23 +0000 (09:29 -0400)
cups/tls-darwin.c

index b3bd50bf819e1d7e5a0422ae543371fce87ec8cb..0741a320e7081ebb293b5095bd0ca705bbc27383 100644 (file)
@@ -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 };