1
0
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:
Volker Lendecke 2016-06-28 14:38:57 +02:00 committed by Ralph Boehme
parent 6318615a63
commit 874a9d9c87

View File

@ -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;
}
}
}