diff options
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r-- | src/mongo/db/mongod_options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp index ae7407bbd6a..e96b2178308 100644 --- a/src/mongo/db/mongod_options.cpp +++ b/src/mongo/db/mongod_options.cpp @@ -1204,7 +1204,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"); } } |