]> git.sur5r.net Git - openldap/commitdiff
fix entry unlock in case of unhandled scope (ITS#4668)
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Sep 2006 00:10:43 +0000 (00:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Sep 2006 00:10:43 +0000 (00:10 +0000)
servers/slapd/back-monitor/search.c

index 4b4b9bef7c78ad32fd5f93ac1d521647d6b02396..a444086d2fd76faa20d03df159becef745e40773 100644 (file)
@@ -244,6 +244,10 @@ monitor_back_search( Operation *op, SlapReply *rs )
 
                rc = monitor_send_children( op, rs, e, 1 );
                break;
+
+       default:
+               rc = LDAP_UNWILLING_TO_PERFORM;
+               monitor_cache_release( mi, e );
        }
 
        rs->sr_attrs = NULL;