]> andersk Git - test.git/commitdiff
Fix --cert option that was accidentally broken by the new --cert-fd support.
authorMarkus Gutschke <markus@shellinabox.com>
Thu, 22 Jan 2009 02:37:46 +0000 (02:37 +0000)
committerMarkus Gutschke <markus@shellinabox.com>
Thu, 22 Jan 2009 02:37:46 +0000 (02:37 +0000)
shellinabox/shellinaboxd.c

index 6a9739373666a3eb0a9c362d35ba80f6122f6bfd..385f63c5636dc4bec9b98e576756b936c5e1ca93 100644 (file)
@@ -678,7 +678,7 @@ static void parseArgs(int argc, char * const argv[]) {
       if (!hasSSL) {
         warn("Ignoring certificate directory, as SSL support is unavailable");
       }
-      if (certificateFd) {
+      if (certificateFd >= 0) {
         fatal("Cannot set both a certificate directory and file handle");
       }
       if (certificateDir) {
This page took 0.049316 seconds and 5 git commands to generate.