Fix rule selection in transform substructure
[strongswan.git] / src / libcharon / encoding / payloads / transform_substructure.c
index 9ee8b48..a4a920b 100644 (file)
@@ -167,7 +167,7 @@ METHOD(payload_t, verify, status_t,
 METHOD(payload_t, get_encoding_rules, int,
        private_transform_substructure_t *this, encoding_rule_t **rules)
 {
-       if (this->type == TRANSFORM_ATTRIBUTE)
+       if (this->type == TRANSFORM_SUBSTRUCTURE)
        {
                *rules = encodings_v2;
                return countof(encodings_v2);