From b7cfa97817a4497a3ee97cbc3c3967212b3db608 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 8 May 2007 14:13:18 +0000 Subject: [PATCH] coverity error, u->lud_scheme is mandatory --- libraries/libldap/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5