]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/search.c
Don't reeval expression
[openldap] / servers / slapd / back-shell / search.c
index 6d574524ad07d9833ea0c5405dc5e9fbab246ee8..cc9e4dcca642dbec2775e3e4b9f22a43be7fd6a4 100644 (file)
@@ -33,7 +33,6 @@ shell_back_search(
 )
 {
        struct shellinfo        *si = (struct shellinfo *) be->be_private;
-       int                     i;
        FILE                    *rfp, *wfp;
        AttributeName           *an;
 
@@ -45,14 +44,13 @@ shell_back_search(
 
        if ( (op->o_private = (void *) forkandexec( si->si_search, &rfp, &wfp ))
            == (void *) -1 ) {
-               send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
+               send_ldap_result( conn, op, LDAP_OTHER, NULL,
                    "could not fork/exec", NULL, NULL );
                return( -1 );
        }
 
        /* write out the request to the search process */
        fprintf( wfp, "SEARCH\n" );
-       fprintf( wfp, "opid: %ld/%ld\n", op->o_connid, (long) op->o_msgid );
        fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
        print_suffixes( wfp, be );
        fprintf( wfp, "base: %s\n", base->bv_val );