mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
ITS#5934 fix NULL pointer deref
This commit is contained in:
parent
911b5fd42e
commit
fbf42baefa
1 changed files with 2 additions and 3 deletions
|
|
@ -452,9 +452,9 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
|
|||
ldap_pvt_thread_mutex_unlock( &ld->ld_conn_mutex );
|
||||
#endif
|
||||
|
||||
if ( lc->lconn_server->lud_exts ) {
|
||||
if ( connect ) {
|
||||
#ifdef HAVE_TLS
|
||||
if ( connect ) {
|
||||
if ( lc->lconn_server->lud_exts ) {
|
||||
int rc, ext = find_tls_ext( lc->lconn_server );
|
||||
if ( ext ) {
|
||||
LDAPConn *savedefconn;
|
||||
|
|
@ -480,7 +480,6 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue