diff --git a/shellinabox/shellinaboxd.c b/shellinabox/shellinaboxd.c index 6a97393..385f63c 100644 --- a/shellinabox/shellinaboxd.c +++ b/shellinabox/shellinaboxd.c @@ -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) {