Skip to content

Commit

Permalink
Fix potential deadlock (OpenPrinting #243)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 7, 2021
1 parent 3499fe1 commit fd50212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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
Expand Down Expand Up @@ -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 };
Expand Down

0 comments on commit fd50212

Please sign in to comment.