mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
re-fix previus commit the other way 'round (rids are < 1000)
This commit is contained in:
parent
b0f63112be
commit
5ed0fc3749
@ -3804,8 +3804,8 @@ syncrepl_unparse( syncinfo_t *si, struct berval *bv )
|
|||||||
si->si_bindconf.sb_version = LDAP_VERSION3;
|
si->si_bindconf.sb_version = LDAP_VERSION3;
|
||||||
|
|
||||||
ptr = buf;
|
ptr = buf;
|
||||||
ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03ld " PROVIDERSTR "=%s",
|
ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03d " PROVIDERSTR "=%s",
|
||||||
(long)si->si_rid, si->si_bindconf.sb_uri.bv_val );
|
si->si_rid, si->si_bindconf.sb_uri.bv_val );
|
||||||
if ( ptr - buf >= sizeof( buf ) ) return;
|
if ( ptr - buf >= sizeof( buf ) ) return;
|
||||||
if ( !BER_BVISNULL( &bc ) ) {
|
if ( !BER_BVISNULL( &bc ) ) {
|
||||||
if ( WHATSLEFT <= bc.bv_len ) {
|
if ( WHATSLEFT <= bc.bv_len ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user