mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
This commit is contained in:
parent
cc79022b71
commit
b295d66a2c
@ -305,7 +305,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( use_ldsb ) {
|
if ( use_ldsb ) {
|
||||||
assert( ld->ld_sb );
|
assert( ld->ld_sb != NULL );
|
||||||
lc->lconn_sb = ld->ld_sb;
|
lc->lconn_sb = ld->ld_sb;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user