summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-08 14:24:46 +0200
committerGünther Deschner <gd@samba.org>2008-05-09 14:59:20 +0200
commitc58ab8f3b251f9fbf79fc8a528717e0756c02a76 (patch)
treee332561db81c8285385e481e167cf7488f0af7a4 /source3
parentf11acf358225ecf10a8af2a12e304019adc6ee4f (diff)
downloadsamba-c58ab8f3b251f9fbf79fc8a528717e0756c02a76.tar.gz
samba-c58ab8f3b251f9fbf79fc8a528717e0756c02a76.tar.bz2
samba-c58ab8f3b251f9fbf79fc8a528717e0756c02a76.zip
dsgetdcname: the forest name should never be empty.
Guenther (This used to be commit 2c0a96f1e5fc065fdbeb5671cfa693009321dde8)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/dsgetdcname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 2c8f42399f..8021f8f054 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -785,7 +785,7 @@ static NTSTATUS make_domain_controller_info(TALLOC_CTX *mem_ctx,
NT_STATUS_HAVE_NO_MEMORY(info->domain_name);
}
- if (forest_name) {
+ if (forest_name && *forest_name) {
info->forest_name = talloc_strdup(mem_ctx, forest_name);
NT_STATUS_HAVE_NO_MEMORY(info->forest_name);
flags |= DS_DNS_FOREST;