]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/compare.c
Do not require ac/string.h for lber_pvt.h
[openldap] / servers / slapd / compare.c
index b731177383c0fde81cde0225db79580a55f57e9e..37ae22d3b5a22fcebf1ae1f3e8a42d136676d970 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2015 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -125,6 +125,10 @@ do_compare(
 
        op->o_bd = frontendDB;
        rs->sr_err = frontendDB->be_compare( op, rs );
+       if ( rs->sr_err == SLAPD_ASYNCOP ) {
+               /* skip cleanup */
+               return rs->sr_err;
+       }
 
 cleanup:;
        op->o_tmpfree( op->o_req_dn.bv_val, op->o_tmpmemctx );