Fix payload length of id_payload created from a traffic selector

This commit is contained in:
Martin Willi 2011-11-21 13:43:48 +01:00
parent 42a69b05ab
commit 7fcd26f4fc
1 changed files with 1 additions and 0 deletions

View File

@ -406,6 +406,7 @@ id_payload_t *id_payload_create_from_ts(traffic_selector_t *ts)
}
this->port = ts->get_from_port(ts);
this->protocol_id = ts->get_protocol(ts);
this->payload_length += this->id_data.len;
net->destroy(net);