mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5979 don't create reqOld attr if there was no previous value
This commit is contained in:
parent
1f5937f993
commit
8597332057
@ -1551,6 +1551,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
|
||||
i += a->a_numvals;
|
||||
}
|
||||
}
|
||||
if ( i ) {
|
||||
vals = ch_malloc( (i + 1) * sizeof( struct berval ) );
|
||||
i = 0;
|
||||
for ( a=old->e_attrs; a; a=a->a_next ) {
|
||||
@ -1568,6 +1569,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
|
||||
a->a_nvals = vals;
|
||||
last_attr->a_next = a;
|
||||
}
|
||||
}
|
||||
if ( logop == LOG_EN_MODIFY ) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user