diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-13 02:16:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:22:58 -0500 |
commit | e2881aca86936ef4712c431b01dfab11427aea89 (patch) | |
tree | 8acdd8d7433a3b5c71b02d59974c02deb5798de5 | |
parent | 74727243cd10e5cdf02fb133dbbbe7c213cfda63 (diff) | |
download | samba-e2881aca86936ef4712c431b01dfab11427aea89.tar.gz samba-e2881aca86936ef4712c431b01dfab11427aea89.tar.bz2 samba-e2881aca86936ef4712c431b01dfab11427aea89.zip |
r8406: make sure we give an error in ldbAdd() if any record fails
(This used to be commit 632f99017ded607c80022f730b6ec7e37bd13642)
-rw-r--r-- | source4/scripting/ejs/smbcalls_ldb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/ejs/smbcalls_ldb.c b/source4/scripting/ejs/smbcalls_ldb.c index 69ebe39567..2df53ace4f 100644 --- a/source4/scripting/ejs/smbcalls_ldb.c +++ b/source4/scripting/ejs/smbcalls_ldb.c @@ -114,6 +114,7 @@ static int ejs_ldbAddModify(MprVarHandle eid, int argc, char **argv, while ((ldif = ldb_ldif_read_string(ldb, &ldifstring))) { ret = fn(ldb, ldif->msg); talloc_free(ldif); + if (ret != 0) break; } mpr_Return(eid, mprCreateBoolVar(ret == 0)); |