mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
fixes ITS#1398
This commit is contained in:
parent
4d0ab0215b
commit
97e8a2a9da
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue