]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/search.c
Happy New Year
[openldap] / servers / slapd / search.c
index 3f1989dda2893a74a2286318823a9354beeafac4..d5746e1da9a533614de68f079db0fd9e9bab9fdb 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2014 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -245,6 +245,10 @@ do_search(
 
        op->o_bd = frontendDB;
        rs->sr_err = frontendDB->be_search( op, rs );
+       if ( rs->sr_err == SLAPD_ASYNCOP ) {
+               /* skip cleanup */
+               return rs->sr_err;
+       }
 
 return_results:;
        if ( !BER_BVISNULL( &op->o_req_dn ) ) {