]> git.sur5r.net Git - openldap/commitdiff
referral is a legitimate result
authorPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 15:07:54 +0000 (09:07 -0600)
committerPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 17:19:30 +0000 (11:19 -0600)
clients/tools/ldapsearch.c

index 64568a70d29ca3634aec6dad7efb679e4612b558..ff50e8fecc131e0011e5f756f5ff9d7c67c24022 100644 (file)
@@ -1557,7 +1557,12 @@ done:
                ldap_get_option( ld, LDAP_OPT_RESULT_CODE, (void *)&rc );
        }
 
-       if ( rc != 0 ) {
+       switch ( rc ) {
+       case LDAP_SUCCESS:
+       case LDAP_REFERRAL:
+               break;
+
+       default:
                tool_perror( "ldap_result", rc, NULL, NULL, NULL, NULL );
                return( rc );
        }