Fix rule selection in transform substructure

This commit is contained in:
Martin Willi
2012-03-20 17:30:44 +01:00
parent 5f1aef65ce
commit 5789320f5c
@@ -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);