X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fadd.c;h=d0b3b772fdfaac0b154452ccaeba31d78f5641f6;hb=75999a18c3c302bc2a71e9a01dfe63a62be8077c;hp=41ae59cf180ce4d90f13d3754721c4221f92bc12;hpb=6e430cca902dfef92609e91ea14dafea934324d2;p=openldap diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 41ae59cf18..d0b3b772fd 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2014 The OpenLDAP Foundation. + * Copyright 1998-2017 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -194,6 +194,11 @@ do_add( Operation *op, SlapReply *rs ) rc = frontendDB->be_add( op, rs ); LDAP_SLIST_REMOVE(&op->o_extra, &oex.oe, OpExtra, oe_next); + if ( rc == SLAPD_ASYNCOP ) { + /* skip cleanup */ + return rc; + } + #ifdef LDAP_X_TXN if ( rc == LDAP_X_TXN_SPECIFY_OKAY ) { /* skip cleanup */