mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix double free - related to ITS#4860 and probably ITS#4873
This commit is contained in:
parent
84500fc2b7
commit
1845f1b951
@ -182,6 +182,9 @@ slap_set_join(
|
||||
}
|
||||
}
|
||||
|
||||
/* pointers to values have been used in set - don't free twice */
|
||||
op_flags |= SLAP_SET_LREFVAL;
|
||||
|
||||
last = i;
|
||||
|
||||
for ( i = 0; !BER_BVISNULL( &rset[ i ] ); i++ ) {
|
||||
@ -210,6 +213,10 @@ slap_set_join(
|
||||
last++;
|
||||
}
|
||||
}
|
||||
|
||||
/* pointers to values have been used in set - don't free twice */
|
||||
op_flags |= SLAP_SET_RREFVAL;
|
||||
|
||||
BER_BVZERO( &set[ last ] );
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user