diff options
author | Jeremy Allison <jra@samba.org> | 2006-05-25 15:40:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:11 -0500 |
commit | 9a38c05154879b2fd89da3a745bd290c97e0a9ce (patch) | |
tree | 10affebbc2add70f750063284b5f375ee7db5cf7 /source3 | |
parent | b4f96abf0a9dd51980a1f830d5a79b37730eee62 (diff) | |
download | samba-9a38c05154879b2fd89da3a745bd290c97e0a9ce.tar.gz samba-9a38c05154879b2fd89da3a745bd290c97e0a9ce.tar.bz2 samba-9a38c05154879b2fd89da3a745bd290c97e0a9ce.zip |
r15884: Fix bug #3803 from jason@ncac.gwu.edu - bad comparison.
Jeremy.
(This used to be commit 1d9dbe3b662ea757224ca4d8c991ae73bb92ae8d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index ffc0f04332..12f18d319b 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -595,7 +595,7 @@ void init_r_enum_trust_dom(TALLOC_CTX *ctx, LSA_R_ENUM_TRUST_DOM *out, init_dom_sid2(out->domlist->domains[i].sid, &(td[i])->sid); - if (push_ucs2_talloc(ctx, &name, (td[i])->name) < 0){ + if (push_ucs2_talloc(ctx, &name, (td[i])->name) == (size_t)-1){ out->status = NT_STATUS_NO_MEMORY; return; } |