X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fadd.c;h=d0b3b772fdfaac0b154452ccaeba31d78f5641f6;hb=75999a18c3c302bc2a71e9a01dfe63a62be8077c;hp=1dab5bb524d56c35872448d4d475217e71ce4c3a;hpb=528b256e09e27c016692e8c5e2d9afe4327db77e;p=openldap diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 1dab5bb524..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-2015 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 */