From: Pierangelo Masarati Date: Wed, 11 Sep 2002 17:15:55 +0000 (+0000) Subject: trim c++ style comments X-Git-Tag: NO_SLAP_OP_BLOCKS~985 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae2cd84d162014d21039fa29e7d85a1bb4af3cee;p=openldap trim c++ style comments --- diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index 16d49e8495..92b6e3a34d 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -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 ); }