X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-ndb%2Fadd.cpp;h=0e2b68e5eab551865ae39d9dd738d3e9aa7b7e19;hb=55060f6b1f23c6e4276d8e10ef73eaf1f2a3ab3a;hp=91e32d9444c4c056f7516eb3cae79d0b9158a460;hpb=4af9eb971559e3a1f0432615e93ec870dc753ddb;p=openldap diff --git a/servers/slapd/back-ndb/add.cpp b/servers/slapd/back-ndb/add.cpp index 91e32d9444..0e2b68e5ea 100644 --- a/servers/slapd/back-ndb/add.cpp +++ b/servers/slapd/back-ndb/add.cpp @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2008-2009 The OpenLDAP Foundation. + * Copyright 2008-2012 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -51,10 +51,11 @@ ndb_back_add(Operation *op, SlapReply *rs ) op->oq_add.rs_e->e_name.bv_val, 0, 0); ctrls[num_ctrls] = 0; + NA.txn = NULL; /* check entry's schema */ rs->sr_err = entry_schema_check( op, op->oq_add.rs_e, NULL, - get_relax(op), 1, &rs->sr_text, textbuf, textlen ); + get_relax(op), 1, NULL, &rs->sr_text, textbuf, textlen ); if ( rs->sr_err != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(ndb_back_add) ": entry failed schema check: "