From: Tobias Brunner Date: Wed, 3 Feb 2016 16:34:34 +0000 (+0100) Subject: payloads: Verify P-CSCF configuration attributes like others carrying IP addresses X-Git-Tag: 5.4.0rc1~9^2~6 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=319b031a8a4b7d26fa55bc4fb6a473d192bf5b14 payloads: Verify P-CSCF configuration attributes like others carrying IP addresses --- diff --git a/src/libcharon/encoding/payloads/configuration_attribute.c b/src/libcharon/encoding/payloads/configuration_attribute.c index 0bc9470..4ecdf56 100644 --- a/src/libcharon/encoding/payloads/configuration_attribute.c +++ b/src/libcharon/encoding/payloads/configuration_attribute.c @@ -132,6 +132,7 @@ METHOD(payload_t, verify, status_t, case INTERNAL_IP4_NBNS: case INTERNAL_ADDRESS_EXPIRY: case INTERNAL_IP4_DHCP: + case P_CSCF_IP4_ADDRESS: if (this->length_or_value != 0 && this->length_or_value != 4) { failed = TRUE; @@ -160,6 +161,7 @@ METHOD(payload_t, verify, status_t, case INTERNAL_IP6_DNS: case INTERNAL_IP6_NBNS: case INTERNAL_IP6_DHCP: + case P_CSCF_IP6_ADDRESS: if (this->length_or_value != 0 && this->length_or_value != 16) { failed = TRUE;