p->buf_in.buf_size = p->buf_in.buf_end;
- bufptr += ber_pvt_sb_copy_out( &p->buf_in, buf + bufptr, len );
+ bufptr += ber_pvt_sb_copy_out( &p->buf_in, (char*) buf + bufptr, len );
return bufptr;
}
mechlist = array2str( values );
if ( mechlist == NULL ) {
ld->ld_errno = LDAP_NO_MEMORY;
- ldap_value_free( values );
+ LDAP_VFREE( values );
ldap_msgfree( res );
return ld->ld_errno;
}
- ldap_value_free( values );
+ LDAP_VFREE( values );
ldap_msgfree( res );
*pmechlist = mechlist;
}
sasl_setprop( ld->ld_sasl_context, SASL_IP_LOCAL, &sin );
- memset( &secprops, 0, sizeof( secprops ) );
+ memset( &secprops, '\0', sizeof( secprops ) );
secprops.min_ssf = ld->ld_options.ldo_sasl_minssf;
secprops.max_ssf = ld->ld_options.ldo_sasl_maxssf;
secprops.security_flags = SASL_SECURITY_LAYER;