diff options
Diffstat (limited to 'source4')
-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)); |