summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_site.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-02 08:09:25 +0200
committerVolker Lendecke <vl@samba.org>2008-10-02 08:09:25 +0200
commitaf1c802791e3c9f54220d8c80c3de79ef422d726 (patch)
tree7f50e811c916ad3815516ec1c9b7676e72c7ffec /source4/libnet/libnet_site.c
parent8641b54a736c5c924bf38cf4574d1f8e34d2d0cd (diff)
downloadsamba-af1c802791e3c9f54220d8c80c3de79ef422d726.tar.gz
samba-af1c802791e3c9f54220d8c80c3de79ef422d726.tar.bz2
samba-af1c802791e3c9f54220d8c80c3de79ef422d726.zip
The IRIX compiler does not like embedded unnamed unions
Diffstat (limited to 'source4/libnet/libnet_site.c')
-rw-r--r--source4/libnet/libnet_site.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libnet/libnet_site.c b/source4/libnet/libnet_site.c
index 5647a93b8d..4a32ab92ed 100644
--- a/source4/libnet/libnet_site.c
+++ b/source4/libnet/libnet_site.c
@@ -58,7 +58,8 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li
cldap = cldap_socket_init(tmp_ctx, lctx->event_ctx, lp_iconv_convenience(lctx->lp_ctx));
status = cldap_netlogon(cldap, tmp_ctx, &search);
- if (!NT_STATUS_IS_OK(status) || !search.out.netlogon.nt5_ex.client_site) {
+ if (!NT_STATUS_IS_OK(status)
+ || !search.out.netlogon.data.nt5_ex.client_site) {
/*
If cldap_netlogon() returns in error,
default to using Default-First-Site-Name.
@@ -72,7 +73,7 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li
}
} else {
site_name_str = talloc_asprintf(tmp_ctx, "%s",
- search.out.netlogon.nt5_ex.client_site);
+ search.out.netlogon.data.nt5_ex.client_site);
if (!site_name_str) {
r->out.error_string = NULL;
talloc_free(tmp_ctx);