fixed parsing of UNKNOWN_PAYLOADs
authorMartin Willi <martin@strongswan.org>
Wed, 21 May 2008 21:53:38 +0000 (21:53 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 21 May 2008 21:53:38 +0000 (21:53 -0000)
src/charon/encoding/parser.c

index 161ceff..a370875 100644 (file)
@@ -957,7 +957,7 @@ static status_t parse_payload(private_parser_t *this, payload_type_t payload_typ
                                }
                                break;                                                  
                        }
-                       case UNKNOWN_PAYLOAD:
+                       case UNKNOWN_DATA:
                        {
                                size_t unknown_payload_data_length = payload_length - UNKNOWN_PAYLOAD_HEADER_LENGTH;
                                if (this->parse_chunk(this, rule_number, output + rule->offset, unknown_payload_data_length) != SUCCESS)