Supress useless error
authorJamie Cameron <jcameron@webmin.com>
Thu, 2 Dec 2010 22:31:50 +0000 (14:31 -0800)
committerJamie Cameron <jcameron@webmin.com>
Thu, 2 Dec 2010 22:31:50 +0000 (14:31 -0800)
miniserv.pl

index 944a5a0..9776291 100755 (executable)
@@ -238,7 +238,9 @@ if ($@) {
 # Setup SSL if possible and if requested
 if (!-r $config{'keyfile'}) {
        # Key file doesn't exist!
-       print STDERR "SSL key file $config{'keyfile'} does not exist\n";
+       if ($config{'keyfile'}) {
+               print STDERR "SSL key file $config{'keyfile'} does not exist\n";
+               }
        $use_ssl = 0;
        }
 elsif ($config{'certfile'} && !-r $config{'certfile'}) {