Replaced usages of CHARON_*_PORT with calls to get_port().
[strongswan.git] / src / libcharon / sa / ikev1 / tasks / informational.c
index eee716c..bda1d2a 100644 (file)
@@ -116,7 +116,8 @@ METHOD(task_t, process_r, status_t,
                                                         notify_type_names, type, redirect);
                                                /* Cisco boxes reject the first message from 4500 */
                                                me = this->ike_sa->get_my_host(this->ike_sa);
-                                               me->set_port(me, CHARON_UDP_PORT);
+                                               me->set_port(me, charon->socket->get_port(
+                                                                                                               charon->socket, FALSE));
                                                this->ike_sa->set_other_host(this->ike_sa, redirect);
                                                this->ike_sa->reauth(this->ike_sa);
                                                enumerator->destroy(enumerator);