Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1494435
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: openldap

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: openldap-2.1.30-alt-gentoo-tls_slave.patch


diff -Nru openldap-2.1.30.orig/libraries/libldap/tls.c openldap-2.1.30/libraries/libldap/tls.c
--- openldap-2.1.30.orig/libraries/libldap/tls.c	2003-05-06 16:02:21 +0300
+++ openldap-2.1.30/libraries/libldap/tls.c	2005-06-30 13:19:10 +0300
@@ -1718,7 +1718,8 @@
 
 	/* XXYYZ: this initiates operation only on default connection! */
 
-	if ( ld->ld_sb != NULL && ldap_pvt_tls_inplace( ld->ld_sb ) != 0 ) {
+	if (( ld->ld_defconn != NULL ) ? ( ld->ld_defconn->lconn_sb != NULL && ldap_pvt_tls_inplace( ld->ld_defconn->lconn_sb ) != 0 )
+		: ( ld->ld_sb != NULL && ldap_pvt_tls_inplace( ld->ld_sb ) != 0 ) ) {
 		return LDAP_LOCAL_ERROR;
 	}
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005