summaryrefslogtreecommitdiff
path: root/src/mongo/util/errno_util.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2018-03-16 12:03:10 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2018-03-22 13:53:46 -0400
commit585b952d3adbb73860eec575b1913429c482de38 (patch)
tree31a8d1bc004ef5efd9de8354dc276ff14d8bae03 /src/mongo/util/errno_util.cpp
parent9eba3a0ed37787fc69c4744432c1db70167bc80a (diff)
downloadmongo-585b952d3adbb73860eec575b1913429c482de38.tar.gz
SERVER-22411 SChannel Certificate Validation and Fixes
Diffstat (limited to 'src/mongo/util/errno_util.cpp')
-rw-r--r--src/mongo/util/errno_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/errno_util.cpp b/src/mongo/util/errno_util.cpp
index 9fa7902bfc1..fca401aa129 100644
--- a/src/mongo/util/errno_util.cpp
+++ b/src/mongo/util/errno_util.cpp
@@ -48,7 +48,7 @@ const int kBuflen = 256; // strerror strings in non-English locales can be larg
std::string errnoWithDescription(int errNumber) {
#if defined(_WIN32)
- if (errNumber < 0)
+ if (errNumber == -1)
errNumber = GetLastError();
#else
if (errNumber < 0)