Skip to content
Snippets Groups Projects
Commit ae3a80eb authored by Howard Chu's avatar Howard Chu
Browse files

Fix in 1.50 applies to Cyrus 1 as well as Cyrus 2.

parent f9687f6c
No related branches found
No related tags found
No related merge requests found
......@@ -459,7 +459,6 @@ ldap_int_sasl_open(
#else
rc = sasl_client_new( "ldap", host, session_callbacks,
SASL_SECURITY_LAYER, &ctx );
LDAP_FREE( session_callbacks );
#endif
if ( rc != SASL_OK ) {
......@@ -506,13 +505,11 @@ int ldap_int_sasl_close( LDAP *ld, LDAPConn *lc )
sasl_conn_t *ctx = lc->lconn_sasl_ctx;
if( ctx != NULL ) {
#if SASL_VERSION_MAJOR >= 2
const void *callbacks;
sasl_getprop( ctx, SASL_CALLBACK, &callbacks );
LDAP_FREE( (void *)callbacks );
#endif
sasl_dispose( &ctx );
lc->lconn_sasl_ctx = NULL;
LDAP_FREE( (void *)callbacks );
}
return LDAP_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment