From: Howard Chu Date: Tue, 8 May 2007 14:13:18 +0000 (+0000) Subject: coverity error, u->lud_scheme is mandatory X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~518 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7cfa97817a4497a3ee97cbc3c3967212b3db608;p=openldap coverity error, u->lud_scheme is mandatory --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 3a354828d5..30b15d11dd 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -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; }