diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-09 16:36:55 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-05-14 15:11:47 +0200 |
commit | 46a41d0fbdd7b4524313c9299851ad7a63244763 (patch) | |
tree | c531d9380421b56aaef796c9d1b2b6f5770f9431 /source3 | |
parent | 87542e1310cfa90e5af0b00d77def969c7b38aef (diff) | |
download | samba-46a41d0fbdd7b4524313c9299851ad7a63244763.tar.gz samba-46a41d0fbdd7b4524313c9299851ad7a63244763.tar.bz2 samba-46a41d0fbdd7b4524313c9299851ad7a63244763.zip |
s3: Fix Coverity ID 241320 Array compared against 0
domain->alt_name is an array, not a pointer
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon May 14 15:11:47 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c index 6f87302050..4759a17aca 100644 --- a/source3/winbindd/winbindd_misc.c +++ b/source3/winbindd/winbindd_misc.c @@ -200,7 +200,7 @@ enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain * if (state->request->data.list_all_domains && !have_own_domain) { extra_data = talloc_asprintf_append_buffer( extra_data, "%s\\%s\\%s\n", domain->name, - domain->alt_name ? domain->alt_name : domain->name, + domain->alt_name[0] ? domain->alt_name : domain->name, sid_string_talloc(state->mem_ctx, &domain->sid)); } |