summaryrefslogtreecommitdiffstats
path: root/source/printing
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
commitab8934844a8ae08657769ce1787c32f14a7eb745 (patch)
tree60da3e3cbab26ddcadec49dd274d20a43a67aba4 /source/printing
parent2a0173743d2cf615d52278f3dd87cc804abe2d16 (diff)
downloadsamba-ab8934844a8ae08657769ce1787c32f14a7eb745.tar.gz
samba-ab8934844a8ae08657769ce1787c32f14a7eb745.tar.xz
samba-ab8934844a8ae08657769ce1787c32f14a7eb745.zip
Fix case where we have no dns domain name. Return a talloc of "".
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 57e7d37c6e9..e729c3b46d9 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -2953,7 +2953,7 @@ static bool map_nt_printer_info2_to_dsspooler(NT_PRINTER_INFO_LEVEL_2 *info2)
join the domain */
dnssuffix = get_mydnsdomname(talloc_tos());
- if (!dnssuffix) {
+ if (dnssuffix && *dnssuffix) {
fstr_sprintf( longname, "%s.%s", global_myname(), dnssuffix );
} else {
fstrcpy( longname, global_myname() );