mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r8935: Fix signed/unsigned comparison warning. Bugzilla #2943.
(This used to be commit e928a20c2bf9c79a68711c6bcd4fb91b270245f4)
This commit is contained in:
parent
6e98a3c999
commit
850a6f3a8d
@ -4974,7 +4974,7 @@ static int rpc_trustdom_establish(int argc, const char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (push_ucs2_talloc(mem_ctx, &uni_domain_name, domain_name_pol) < 0) {
|
||||
if (push_ucs2_talloc(mem_ctx, &uni_domain_name, domain_name_pol) == (size_t)-1) {
|
||||
DEBUG(0, ("Could not convert domain name %s to unicode\n",
|
||||
domain_name_pol));
|
||||
return -1;
|
||||
@ -5128,7 +5128,7 @@ static NTSTATUS vampire_trusted_domain(struct cli_state *cli,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (push_ucs2_talloc(mem_ctx, &uni_dom_name, trusted_dom_name) < 0) {
|
||||
if (push_ucs2_talloc(mem_ctx, &uni_dom_name, trusted_dom_name) == (size_t)-1) {
|
||||
DEBUG(0, ("Could not convert domain name %s to unicode\n",
|
||||
trusted_dom_name));
|
||||
nt_status = NT_STATUS_UNSUCCESSFUL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user