mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix Compare bug in liblber/memory.c (ITS#3116)
This commit is contained in:
parent
5f2497910b
commit
781c2d02a1
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ ber_memrealloc_x( void* p, ber_len_t s, void *ctx )
|
|||
mh = p;
|
||||
mh->bm_length = s;
|
||||
setend( (char *)&mh[1] + mh->bm_length );
|
||||
if( (s - oldlen) > 0 ) {
|
||||
if( s > oldlen ) {
|
||||
/* poison any new memory */
|
||||
memset( (char *)&mh[1] + oldlen, 0xff, s - oldlen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue