diff --git a/lib/SimpleSAML/Utils/Net.php b/lib/SimpleSAML/Utils/Net.php
index 4cf2c83c64d1665b53e4057fe6bcdf640f76ba1b..9c8e0df2edae43a9d9df56705cf627941014d441 100644
--- a/lib/SimpleSAML/Utils/Net.php
+++ b/lib/SimpleSAML/Utils/Net.php
@@ -34,6 +34,8 @@ class Net
 
         list ($net, $mask) = explode('/', $cidr);
 
+        $ip_ip = array();
+        $ip_net = array();
         if (strstr($ip, ':') || strstr($net, ':')) {
             // Validate IPv6 with inet_pton, convert to hex with bin2hex
             // then store as a long with hexdec