- if ( ber_printf( ber, "{it{s{sON}N}", /* '}' */
- ++ld->ld_msgid,
- LDAP_REQ_COMPARE, dn, attr, bvalue ) == -1 )
+ LDAP_NEXT_MSGID(ld, id);
+ rc = ber_printf( ber, "{it{s{sON}N}", /* '}' */
+ id,
+ LDAP_REQ_COMPARE, dn, attr, bvalue );
+ if ( rc == -1 )