From: Pierangelo Masarati Date: Sat, 20 Oct 2001 15:49:05 +0000 (+0000) Subject: fixes ITS#1398 X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~962 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=97e8a2a9da4d7d339ee955324ffa5dfb63aac52a;p=openldap fixes ITS#1398 --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 723a03e58d..d836dcc6ea 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -401,7 +401,7 @@ ber_bvecadd( struct berval ***bvec, struct berval *bv ) ber_int_options.lbo_valid = LBER_INITIALIZED; - if( bvec == NULL ) { + if( *bvec == NULL ) { if( bv == NULL ) { /* nothing to add */ return 0; @@ -422,7 +422,7 @@ ber_bvecadd( struct berval ***bvec, struct berval *bv ) BER_MEM_VALID( bvec ); /* count entries */ - for ( i = 0; bvec[i] != NULL; i++ ) { + for ( i = 0; (*bvec)[i] != NULL; i++ ) { /* EMPTY */; }