]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Interpret attribute format correctly in IKEv1 configuration format
authorMartin Willi <martin@revosec.ch>
Fri, 9 Dec 2011 13:54:23 +0000 (14:54 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:16 +0000 (17:31 +0100)
src/libcharon/encoding/payloads/configuration_attribute.c

index fe2e42bc4bf0a98546e98fdc7e0d1a4a3c5f7d14..bcb89c515d61d12ef8c8cefabe10b8987689d0e3 100644 (file)
@@ -97,9 +97,9 @@ static encoding_rule_t encodings_v2[] = {
  */
 static encoding_rule_t encodings_v1[] = {
        /* AF Flag */
-       { FLAG,                                                 offsetof(private_configuration_attribute_t, af_flag)            },
+       { ATTRIBUTE_FORMAT,                             offsetof(private_configuration_attribute_t, af_flag)            },
        /* type of the attribute as 15 bit unsigned integer */
-       { ATTRIBUTE_TYPE,                               offsetof(private_configuration_attribute_t, attr_type)                  },
+       { ATTRIBUTE_TYPE,                               offsetof(private_configuration_attribute_t, attr_type)          },
        /* Length of attribute value */
        { ATTRIBUTE_LENGTH_OR_VALUE,    offsetof(private_configuration_attribute_t, length_or_value)},
        /* Value of attribute if attribute format flag is zero */