mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
Import ITS#1398 fix from HEAD
This commit is contained in:
parent
f939f20128
commit
cd734a0fde
@ -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 */;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user