mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
coverity error, u->lud_scheme is mandatory
This commit is contained in:
parent
eb6b265009
commit
b7cfa97817
1 changed files with 2 additions and 2 deletions
|
|
@ -536,11 +536,11 @@ desc2str_len( LDAPURLDesc *u )
|
||||||
int is_ipc = 0;
|
int is_ipc = 0;
|
||||||
struct berval scope;
|
struct berval scope;
|
||||||
|
|
||||||
if ( u == NULL ) {
|
if ( u == NULL || u->lud_scheme == NULL ) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( u->lud_scheme && !strcmp( "ldapi", u->lud_scheme )) {
|
if ( !strcmp( "ldapi", u->lud_scheme )) {
|
||||||
is_ipc = 1;
|
is_ipc = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue