Fix rule selection in transform substructure
authorMartin Willi <martin@revosec.ch>
Mon, 21 Nov 2011 09:10:29 +0000 (10:10 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:44 +0000 (17:30 +0100)
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);