Correctly initialize payload length of encrypted payload

This commit is contained in:
Tobias Brunner 2012-09-28 16:30:26 +02:00
parent 9f22002706
commit f3d98a6b78
1 changed files with 1 additions and 1 deletions

View File

@ -611,10 +611,10 @@ encryption_payload_t *encryption_payload_create(payload_type_t type)
.destroy = _destroy,
},
.next_payload = NO_PAYLOAD,
.payload_length = get_header_length(this),
.payloads = linked_list_create(),
.type = type,
);
this->payload_length = get_header_length(this);
if (type == ENCRYPTED_V1)
{