mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
Fixup cacert option
This commit is contained in:
parent
a336241e0e
commit
2e011eeb67
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue