]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 1 May 2003 09:50:40 +0000 (09:50 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 1 May 2003 09:50:40 +0000 (09:50 +0000)
libraries/libldap/cyrus.c

index 2acfbade17ce7cdbf6be70dc6d77b75ab883aa5f..62e305640b401bbe827290eec12e2c253d7fca69 100644 (file)
@@ -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 );
                }