summaryrefslogtreecommitdiff
path: root/source3/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
commit214bb0f11937843a268a897ab0337184ab36c2bc (patch)
treeb8967374d5e1f8d5653c964ecd4ff1064d8748fd /source3/printing
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/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 57e7d37c6e..e729c3b46d 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/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() );