mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix modify attrs= overflow bug
This commit is contained in:
parent
3f523b4303
commit
e3a0148328
@ -316,8 +316,15 @@ do_modify(
|
||||
if (len + 1 + tmp->sml_type.bv_len > sizeof(abuf)) {
|
||||
Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu MOD attr=%s\n",
|
||||
op->o_connid, op->o_opid, abuf, 0, 0 );
|
||||
len = 0;
|
||||
|
||||
len = 0;
|
||||
ptr = abuf;
|
||||
|
||||
if( 1 + tmp->sml_type.bv_len > sizeof(abuf)) {
|
||||
Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu MOD attr=%s\n",
|
||||
op->o_connid, op->o_opid, tmp->sml_type.bv_val, 0, 0 );
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (len) {
|
||||
*ptr++ = ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user