mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
re-fix ITS#6645 commit
This commit is contained in:
parent
615d1c7703
commit
351bc07fcc
2 changed files with 8 additions and 4 deletions
|
|
@ -234,9 +234,13 @@ parse_slapopt( int tool, int *mode )
|
|||
if ( strcasecmp( p, "no" ) == 0 ) {
|
||||
ldif_wrap = LDIF_LINE_WIDTH_MAX;
|
||||
|
||||
} else if ( lutil_atou( &ldif_wrap, p ) ) {
|
||||
Debug( LDAP_DEBUG_ANY, "unable to parse ldif-wrap=\"%s\".\n", p, 0, 0 );
|
||||
return -1;
|
||||
} else {
|
||||
unsigned int u;
|
||||
if ( lutil_atou( &u, p ) ) {
|
||||
Debug( LDAP_DEBUG_ANY, "unable to parse ldif-wrap=\"%s\".\n", p, 0, 0 );
|
||||
return -1;
|
||||
}
|
||||
ldif_wrap = (ber_len_t)u;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ typedef struct tool_vars {
|
|||
slap_ssf_t tv_sasl_ssf;
|
||||
unsigned tv_dn_mode;
|
||||
unsigned int tv_csnsid;
|
||||
unsigned int tv_ldif_wrap;
|
||||
ber_len_t tv_ldif_wrap;
|
||||
char tv_maxcsnbuf[ LDAP_PVT_CSNSTR_BUFSIZE * ( SLAP_SYNC_SID_MAX + 1 ) ];
|
||||
struct berval tv_maxcsn[ SLAP_SYNC_SID_MAX + 1 ];
|
||||
} tool_vars;
|
||||
|
|
|
|||
Loading…
Reference in a new issue