mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
coverity error, u->lud_scheme is mandatory
This commit is contained in:
parent
eb6b265009
commit
b7cfa97817
@ -536,11 +536,11 @@ desc2str_len( LDAPURLDesc *u )
|
||||
int is_ipc = 0;
|
||||
struct berval scope;
|
||||
|
||||
if ( u == NULL ) {
|
||||
if ( u == NULL || u->lud_scheme == NULL ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( u->lud_scheme && !strcmp( "ldapi", u->lud_scheme )) {
|
||||
if ( !strcmp( "ldapi", u->lud_scheme )) {
|
||||
is_ipc = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user