mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libnet: Fix CID 1362934: CHECKED_RETURN
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6318615a63
commit
874a9d9c87
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user