mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 20:34:08 -05:00
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
This commit is contained in:
parent
388c076768
commit
a222469d0d
1 changed files with 2 additions and 2 deletions
|
|
@ -452,7 +452,7 @@ is_dn: bv.bv_len = in->bv_len - ( bv.bv_val - in->bv_val );
|
|||
}
|
||||
|
||||
/* Grab the searchbase */
|
||||
assert( ludp->lud_dn );
|
||||
assert( ludp->lud_dn != NULL );
|
||||
ber_str2bv( ludp->lud_dn, 0, 0, &bv );
|
||||
rc = dnValidate( NULL, &bv );
|
||||
|
||||
|
|
@ -830,7 +830,7 @@ is_dn: bv.bv_len = val->bv_len - ( bv.bv_val - val->bv_val );
|
|||
}
|
||||
|
||||
/* Grab the searchbase */
|
||||
assert( ludp->lud_dn );
|
||||
assert( ludp->lud_dn != NULL );
|
||||
if ( ludp->lud_dn ) {
|
||||
struct berval out = BER_BVNULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue