summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_options.cpp
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-11 14:06:53 -0400
committerBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-11 14:11:19 -0400
commitf7f3946600e6a5c6612ba6763ca91d93b5a023f7 (patch)
treea2c8bfbfbf08e43fece9d728ed1dfcff8a0b4e84 /src/mongo/db/mongod_options.cpp
parent6a649373bde66a24ecb286aceb14bd12bcaa5a1c (diff)
downloadmongo-f7f3946600e6a5c6612ba6763ca91d93b5a023f7.tar.gz
SERVER-29720 Provide libmongodbcapi database wrapper for service context
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r--src/mongo/db/mongod_options.cpp2
1 files changed, 1 insertions, 1 deletions
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");
}
}