diff --git a/lib/modules/Protocols.pmod/DNS.pmod b/lib/modules/Protocols.pmod/DNS.pmod
index 940d77f0a4cb2553e3785fa084d0fe733dfb83c6..08172ca7e8c149becb7eb2b3ab07cc2fd388c620 100644
--- a/lib/modules/Protocols.pmod/DNS.pmod
+++ b/lib/modules/Protocols.pmod/DNS.pmod
@@ -229,7 +229,7 @@ class client {
 	  }),string key)
 	{
 	  catch {
-	    return RegGetValue(HKEY_LOCAL_MACHINE, key, value);
+	    return RegGetValue(HKEY_LOCAL_MACHINE, key, val);
 	  };
 	}
     }