From: Howard Chu Date: Thu, 1 May 2003 09:50:40 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e8b176d1ff00c81ebe57de14151357e7f8749d5;p=openldap Fix prev commit --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 2acfbade17..62e305640b 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -515,7 +515,8 @@ int ldap_int_sasl_close( LDAP *ld, LDAPConn *lc ) if( ctx != NULL ) { sasl_dispose( &ctx ); - if ( lc->lconn_sasl_sockctx && ctx != lc->lconn_sasl_sockctx ) { + if ( lc->lconn_sasl_sockctx && + lc->lconn_sasl_authctx != lc->lconn_sasl_sockctx ) { ctx = lc->lconn_sasl_sockctx; sasl_dispose( &ctx ); }