From f7f3946600e6a5c6612ba6763ca91d93b5a023f7 Mon Sep 17 00:00:00 2001 From: Ben Shteinfeld Date: Tue, 11 Jul 2017 14:06:53 -0400 Subject: SERVER-29720 Provide libmongodbcapi database wrapper for service context --- src/mongo/db/mongod_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/mongod_options.cpp') diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp index 0f00b00d615..9a38888635d 100644 --- a/src/mongo/db/mongod_options.cpp +++ b/src/mongo/db/mongod_options.cpp @@ -1179,7 +1179,7 @@ Status storeMongodOptions(const moe::Environment& params) { } } } else { - if (serverGlobalParams.port <= 0 || serverGlobalParams.port > 65535) { + if (serverGlobalParams.port < 0 || serverGlobalParams.port > 65535) { return Status(ErrorCodes::BadValue, "bad --port number"); } } -- cgit v1.2.1