git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6318615
)
libnet: Fix CID 1362934: CHECKED_RETURN
author
Volker Lendecke
<vl@samba.org>
Tue, 28 Jun 2016 12:38:57 +0000
(14:38 +0200)
committer
Ralph Boehme
<slow@samba.org>
Tue, 28 Jun 2016 16:48:07 +0000
(18:48 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/libnet/libnet_samsync_ldb.c
patch
|
blob
|
history
diff --git
a/source4/libnet/libnet_samsync_ldb.c
b/source4/libnet/libnet_samsync_ldb.c
index f3a45b8625724250299c0f71082a5b366f883a35..5fdef7909f821f825213c3839f57d76b81cce5da 100644
(file)
--- a/
source4/libnet/libnet_samsync_ldb.c
+++ b/
source4/libnet/libnet_samsync_ldb.c
@@
-414,7
+414,12
@@
static NTSTATUS samsync_ldb_handle_user(TALLOC_CTX *mem_ctx,
samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,
remote_attrs[i]);
} else {
- ldb_msg_add(msg, el, LDB_FLAG_MOD_REPLACE);
+ ret = ldb_msg_add(msg, el, LDB_FLAG_MOD_REPLACE);
+ if (ret != LDB_SUCCESS) {
+ *error_string = talloc_strdup(
+ mem_ctx, "ldb_msg_add failed");
+ return NT_STATUS_NO_MEMORY;
+ }
}
}