coverity error, u->lud_scheme is mandatory

This commit is contained in:
Howard Chu 2007-05-08 14:13:18 +00:00
parent eb6b265009
commit b7cfa97817

View File

@ -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;
}