Skip to content
Snippets Groups Projects
Commit a1da2929 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Wrap csn filter frees with sync mode check.

parent 88c8cca8
No related branches found
No related tags found
No related merge requests found
......@@ -794,6 +794,7 @@ loop_continue:
ldap_pvt_thread_yield();
}
#ifdef LDAP_CLIENT_UPDATE
if ( op->o_clientupdate_type & SLAP_LCUP_SYNC ) {
int ret;
......@@ -866,12 +867,14 @@ done:
}
#ifdef LDAP_CLIENT_UDATE
if ( csnfeq.f_ava != NULL && csnfeq.f_av_value.bv_val != NULL ) {
ch_free( csnfeq.f_av_value.bv_val );
}
if ( op->o_clientupdate_type & SLAP_LCUP_SYNC ) {
if ( csnfeq.f_ava != NULL && csnfeq.f_av_value.bv_val != NULL ) {
ch_free( csnfeq.f_av_value.bv_val );
}
if ( csnfge.f_ava != NULL && csnfge.f_av_value.bv_val != NULL ) {
ch_free( csnfge.f_av_value.bv_val );
if ( csnfge.f_ava != NULL && csnfge.f_av_value.bv_val != NULL ) {
ch_free( csnfge.f_av_value.bv_val );
}
}
#endif /* LDAP_CLIENT_UPDATE */
......
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