]> git.sur5r.net Git - openldap/commitdiff
selectObjectClass returned without a value. Return NULL instead.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 14 Mar 1999 07:42:14 +0000 (07:42 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 14 Mar 1999 07:42:14 +0000 (07:42 +0000)
contrib/whois++/output.c

index af7b7852155425c08e5332fb1bfa1f0af7489297..5a9f3eff6f3bd269417fab6e10c3d74371655a90 100644 (file)
@@ -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] );