]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fixed -lldap SASL ctx close bug (ITS#790)
authorKurt Zeilenga <kurt@openldap.org>
Fri, 29 Sep 2000 19:02:11 +0000 (19:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 29 Sep 2000 19:02:11 +0000 (19:02 +0000)
CHANGES
libraries/libldap/cyrus.c

diff --git a/CHANGES b/CHANGES
index 59da465a0fa0497fb6d8655833f2aadc60579ad3..8825d9ee69bf08eec3c44032e2cb82eefa1d1218 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,7 @@ OpenLDAP 2.0.X Engineering
        Fixed slapd idletimeout lock bug (ITS#767)
        Fixed slapd caseIgnoreIA5string indexing bug (ITS#786)
        Fixed slurpd TLS initialization bug (ITS#768)
+       Fixed -lldap SASL ctx close bug (ITS#790)
        Updated -llber bprint routine
        Build Environment
                Fixed VPATH schema install
index f0f8875b5e71d035312a7ad40e17addd8b221289..9908505699450975db31695893cc0125c1148052 100644 (file)
@@ -326,8 +326,10 @@ int ldap_pvt_sasl_install( Sockbuf *sb, void *ctx_arg )
 
        if ( !ber_sockbuf_ctrl( sb, LBER_SB_OPT_HAS_IO,
                        &ldap_pvt_sockbuf_io_sasl ) )
+       {
                ber_sockbuf_add_io( sb, &ldap_pvt_sockbuf_io_sasl,
                        LBER_SBIOD_LEVEL_APPLICATION, ctx_arg );
+       }
 
        return LDAP_SUCCESS;
 }
@@ -436,9 +438,8 @@ ldap_int_sasl_open(
 int ldap_int_sasl_close( LDAP *ld, LDAPConn *lc )
 {
        sasl_conn_t *ctx = lc->lconn_sasl_ctx;
-       assert( ctx != NULL );
 
-       if( ctx ) {
+       if( ctx != NULL ) {
                sasl_dispose( &ctx );
                lc->lconn_sasl_ctx = NULL;
        }