Ignore a received %any virtual IP for installation
authorMartin Willi <martin@revosec.ch>
Tue, 26 Jun 2012 16:00:40 +0000 (18:00 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 26 Jun 2012 16:00:40 +0000 (18:00 +0200)
src/libcharon/sa/ikev2/tasks/ike_config.c

index da530a0..932b02d 100644 (file)
@@ -376,7 +376,8 @@ METHOD(task_t, process_i, status_t,
 
                process_payloads(this, message);
 
 
                process_payloads(this, message);
 
-               if (this->virtual_ip)
+               if (this->virtual_ip &&
+                       !this->virtual_ip->is_anyaddr(this->virtual_ip))
                {
                        this->ike_sa->set_virtual_ip(this->ike_sa, TRUE, this->virtual_ip);
                }
                {
                        this->ike_sa->set_virtual_ip(this->ike_sa, TRUE, this->virtual_ip);
                }