1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Invalid comparisons.
Jeremy.
This commit is contained in:
Jeremy Allison 2006-05-25 15:44:41 +00:00 committed by Gerald (Jerry) Carter
parent c66620770d
commit 9890a31c5f

View File

@ -404,7 +404,7 @@ BOOL secrets_store_trusted_domain_password(const char* domain, const char* pwd,
struct trusted_dom_pass pass;
ZERO_STRUCT(pass);
if (push_ucs2_allocate(&uni_dom_name, domain) < 0) {
if (push_ucs2_allocate(&uni_dom_name, domain) == (size_t)-1) {
DEBUG(0, ("Could not convert domain name %s to unicode\n",
domain));
return False;
@ -735,7 +735,7 @@ NTSTATUS secrets_trusted_domains(TALLOC_CTX *mem_ctx, uint32 *num_domains,
}
if (pull_ucs2_talloc(mem_ctx, &dom_info->name,
pass.uni_name) < 0) {
pass.uni_name) == (size_t)-1) {
DEBUG(2, ("pull_ucs2_talloc failed\n"));
tdb_search_list_free(keys);
return NT_STATUS_NO_MEMORY;