From 0e8b176d1ff00c81ebe57de14151357e7f8749d5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 1 May 2003 09:50:40 +0000 Subject: [PATCH] Fix prev commit --- libraries/libldap/cyrus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5