summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-08 17:58:55 -0800
committerJeremy Allison <jra@samba.org>2007-11-08 17:58:55 -0800
commit214bb0f11937843a268a897ab0337184ab36c2bc (patch)
treeb8967374d5e1f8d5653c964ecd4ff1064d8748fd /source3/rpc_server
parentd40e47db4b5da41c8604a2058f3a0b0a82164f08 (diff)
downloadsamba-214bb0f11937843a268a897ab0337184ab36c2bc.tar.gz
samba-214bb0f11937843a268a897ab0337184ab36c2bc.tar.bz2
samba-214bb0f11937843a268a897ab0337184ab36c2bc.zip
Fix case where we have no dns domain name. Return a talloc of "".
Jeremy. (This used to be commit ab8934844a8ae08657769ce1787c32f14a7eb745)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 5c2e1b6f01..20655082a5 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -1928,7 +1928,7 @@ NTSTATUS _lsa_query_info2(pipes_struct *p, LSA_Q_QUERY_INFO2 *q_u, LSA_R_QUERY_I
/* This should be a 'netbios domain -> DNS domain' mapping */
dnsdomname = get_mydnsdomname(p->mem_ctx);
- if (!dnsdomname) {
+ if (!dnsdomname || !*dnsdomname) {
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
}
strlower_m(dnsdomname);