diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-02-03 17:34:34 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-03-10 11:57:38 +0100 |
commit | 319b031a8a4b7d26fa55bc4fb6a473d192bf5b14 (patch) | |
tree | 28f192dfd27caefe46eae1c985021ed5d60d969e /src/libcharon/encoding | |
parent | 7798284da188393f9f12d1e506246188cb019787 (diff) | |
download | strongswan-319b031a8a4b7d26fa55bc4fb6a473d192bf5b14.tar.bz2 strongswan-319b031a8a4b7d26fa55bc4fb6a473d192bf5b14.tar.xz |
payloads: Verify P-CSCF configuration attributes like others carrying IP addresses
Diffstat (limited to 'src/libcharon/encoding')
-rw-r--r-- | src/libcharon/encoding/payloads/configuration_attribute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/encoding/payloads/configuration_attribute.c b/src/libcharon/encoding/payloads/configuration_attribute.c index 0bc94708f..4ecdf569d 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; |