diff --git a/src/main.c b/src/main.c index a2f5726cf..58eb8d98a 100644 --- a/src/main.c +++ b/src/main.c @@ -224,7 +224,7 @@ void establishListen(Options * options) { exit(EXIT_FAILURE); } - if(options->createDB < 0 && !options->updateDB && + if(options->createDB <= 0 && !options->updateDB && (listenSocket = establish(port))<0) { ERROR("error binding port\n");