mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fixup cacert option
This commit is contained in:
parent
a336241e0e
commit
2e011eeb67
@ -139,7 +139,9 @@ tlso_ca_list( char * bundle, char * dir, X509 *cert )
|
||||
if ( cert ) {
|
||||
X509_NAME *xn = X509_get_subject_name( cert );
|
||||
xn = X509_NAME_dup( xn );
|
||||
if ( xn )
|
||||
if ( !ca_list )
|
||||
ca_list = sk_X509_NAME_new_null();
|
||||
if ( xn && ca_list )
|
||||
sk_X509_NAME_push( ca_list, xn );
|
||||
}
|
||||
return ca_list;
|
||||
|
Loading…
Reference in New Issue
Block a user