IKEv1 ConfigMode: Fix configuration_attribute encoding rules for IKEv1 to use the...
authorClavister OpenSource <opensource@clavister.com>
Thu, 24 Nov 2011 10:33:38 +0000 (11:33 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:30:52 +0000 (17:30 +0100)
src/libcharon/encoding/payloads/configuration_attribute.c

index 5817307..fe2e42b 100644 (file)
@@ -99,7 +99,7 @@ static encoding_rule_t encodings_v1[] = {
        /* AF Flag */
        { FLAG,                                                 offsetof(private_configuration_attribute_t, af_flag)            },
        /* type of the attribute as 15 bit unsigned integer */
-       { ATTRIBUTE_TYPE,                               offsetof(private_configuration_attribute_t, 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 */