components/openssl/openssl-1.0.1/engines/pkcs11/e_pk11.c
changeset 4720 1ccedfc24ebb
parent 2207 64e8c961a4a2
equal deleted inserted replaced
4711:c2328acb8517 4720:1ccedfc24ebb
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
     3  */
     3  */
     4 
     4 
     5 /* crypto/engine/e_pk11.c */
     5 /* crypto/engine/e_pk11.c */
     6 /*
     6 /*
     7  * This product includes software developed by the OpenSSL Project for
     7  * This product includes software developed by the OpenSSL Project for
  2175 			{
  2175 			{
  2176 			ret = 0;
  2176 			ret = 0;
  2177 			continue;
  2177 			continue;
  2178 			}
  2178 			}
  2179 		}
  2179 		}
  2180 err:
       
  2181 	if (session == NULL)
  2180 	if (session == NULL)
  2182 		(void) pthread_mutex_unlock(session_cache[OP_DH].lock);
  2181 		(void) pthread_mutex_unlock(session_cache[OP_DH].lock);
  2183 
  2182 
  2184 	return (ret);
  2183 	return (ret);
  2185 	}
  2184 	}