From 97e8a2a9da4d7d339ee955324ffa5dfb63aac52a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 20 Oct 2001 15:49:05 +0000 Subject: [PATCH] fixes ITS#1398 --- libraries/liblber/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */; } -- 2.39.5