summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-09-05 12:33:42 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-09-05 12:33:42 -0400
commit1e01995a1c5c7d406914c3aed6ceaa33f11bdf68 (patch)
tree94237c0b4c454a073f4dbf27d1f71bbe79ccf924 /tools
parent68dc110f524f2c382588fbeadd30685111d06054 (diff)
downloadcups-1e01995a1c5c7d406914c3aed6ceaa33f11bdf68.tar.gz
Fix the default common name used by ippeveprinter...
Diffstat (limited to 'tools')
-rw-r--r--tools/ippeveprinter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ippeveprinter.c b/tools/ippeveprinter.c
index 76c57961a..62489430b 100644
--- a/tools/ippeveprinter.c
+++ b/tools/ippeveprinter.c
@@ -631,10 +631,6 @@ main(int argc, /* I - Number of command-line args */
_cupsLangPrintf(stderr, _("Using spool directory \"%s\"."), directory);
}
-#ifdef HAVE_SSL
- cupsSetServerCredentials(keypath, servername, 1);
-#endif /* HAVE_SSL */
-
/*
* Initialize DNS-SD...
*/
@@ -675,6 +671,10 @@ main(int argc, /* I - Number of command-line args */
printer->ppdfile = strdup(ppdfile);
#endif /* !CUPS_LITE */
+#ifdef HAVE_SSL
+ cupsSetServerCredentials(keypath, printer->hostname, 1);
+#endif /* HAVE_SSL */
+
/*
* Run the print service...
*/