]> git.sur5r.net Git - openldap/commitdiff
trim c++ style comments
authorPierangelo Masarati <ando@openldap.org>
Wed, 11 Sep 2002 17:15:55 +0000 (17:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 11 Sep 2002 17:15:55 +0000 (17:15 +0000)
servers/slapd/back-monitor/search.c

index 16d49e849531cba546a19240906956d1a78b8222..92b6e3a34d430bc79b4d33471cfc9796d687cca3 100644 (file)
@@ -195,7 +195,7 @@ monitor_back_search(
                                attrs, attrsonly,
                                e, 0, &nentries );
                if ( rc ) {
-                       // error
+                       rc = LDAP_OTHER;
                }               
                
                break;
@@ -213,14 +213,14 @@ monitor_back_search(
                                attrs, attrsonly,
                                e, 1, &nentries );
                if ( rc ) {
-                       // error
+                       rc = LDAP_OTHER;
                }
 
                break;
        }
        
-       send_search_result( conn, op, LDAP_SUCCESS,
+       send_search_result( conn, op, rc,
                        NULL, NULL, NULL, NULL, nentries );
 
-       return( 0 );
+       return( rc == LDAP_SUCCESS ? 0 : 1 );
 }