diff options
author | Günther Deschner <gd@samba.org> | 2013-01-03 15:40:49 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-10-24 13:50:30 +0200 |
commit | bb44710200423790fb7f6f8873a4b711e5f67888 (patch) | |
tree | 26a51cce623a2f42b5d1928a98d1f16535887aa6 /source4/libnet | |
parent | eb8d914d913bc7d98492361baf2b8eb721bd0069 (diff) | |
download | samba-bb44710200423790fb7f6f8873a4b711e5f67888.tar.gz |
s4-libnet: make it possible to join "off-site".
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Oct 24 13:50:30 CEST 2014 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_site.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libnet/libnet_site.c b/source4/libnet/libnet_site.c index af105b78ea6..691e4b243ac 100644 --- a/source4/libnet/libnet_site.c +++ b/source4/libnet/libnet_site.c @@ -78,7 +78,8 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li } status = cldap_netlogon(cldap, tmp_ctx, &search); if (!NT_STATUS_IS_OK(status) - || !search.out.netlogon.data.nt5_ex.client_site) { + || search.out.netlogon.data.nt5_ex.client_site == NULL + || search.out.netlogon.data.nt5_ex.client_site[0] == '\0') { /* If cldap_netlogon() returns in error, default to using Default-First-Site-Name. |