From: Hallvard Furuseth Date: Sun, 14 Mar 1999 07:42:14 +0000 (+0000) Subject: selectObjectClass returned without a value. Return NULL instead. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~379 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8654f340cb0a702e76965c60bb4a718689e8a886;p=openldap selectObjectClass returned without a value. Return NULL instead. --- diff --git a/contrib/whois++/output.c b/contrib/whois++/output.c index af7b785215..5a9f3eff6f 100644 --- a/contrib/whois++/output.c +++ b/contrib/whois++/output.c @@ -56,11 +56,11 @@ LDAPMessage *entry; "Read on object \"%s\" failed, %s", dn, ldap_err2string( ld->ld_errno ) ); ldap_memfree( dn ); - return; + return NULL; } else ldap_memfree( dn ); if ( ( val = ldap_get_values( ld, result, "objectClass" ) ) == NULL ) - return; + return NULL; for ( i = 0 ; val[i] != NULL ; i++ ) if ( specifyAttributes( lowerCase( val[i] ) ) != NULL ) { template = strdup( val[i] );