From: Kurt Zeilenga Date: Thu, 29 Apr 2004 01:27:15 +0000 (+0000) Subject: Fix debug bug X-Git-Tag: OPENLDAP_REL_ENG_2_2_12~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0ce0e95f09cf552c6297d89adbceda41239f9d0;p=openldap Fix debug bug --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 2f53f470f7..18b5bac876 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -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); }