diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ippeveprinter.c | 8 |
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... */ |