summaryrefslogtreecommitdiffhomepage
path: root/windows
diff options
context:
space:
mode:
authorOdd Stranne <odd@mullvad.net>2018-06-05 11:47:59 +0200
committerOdd Stranne <odd@mullvad.net>2018-06-18 08:45:15 +0200
commitfe1f5b821231489a90dd6952fea07ea0550fe6a2 (patch)
tree82df7d9bedbdc00877d1b09235681bcac8a1ddff /windows
parentee2eed1537b4e10e27c0bc3f873879094eb6cf2c (diff)
downloadmullvadvpn-fe1f5b821231489a90dd6952fea07ea0550fe6a2.tar.xz
mullvadvpn-fe1f5b821231489a90dd6952fea07ea0550fe6a2.zip
Add parameter validation in WinDns_Set
Diffstat (limited to 'windows')
-rw-r--r--windows/windns/src/windns/windns.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/windows/windns/src/windns/windns.cpp b/windows/windns/src/windns/windns.cpp
index 741d0f3670..e2ee3e841d 100644
--- a/windows/windns/src/windns/windns.cpp
+++ b/windows/windns/src/windns/windns.cpp
@@ -91,7 +91,9 @@ WinDns_Set(
void *configContext
)
{
- if (nullptr == g_Context)
+ if (nullptr == g_Context
+ || 0 == numServers
+ || nullptr == configSink)
{
return false;
}