fixes ITS#1398

This commit is contained in:
Pierangelo Masarati 2001-10-20 15:49:05 +00:00
parent 4d0ab0215b
commit 97e8a2a9da

View file

@ -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 */;
}