bugfix: packet_dup() not copy metadata
This commit is contained in:
@@ -904,6 +904,8 @@ struct packet *packet_dup(const struct packet *pkt)
|
||||
{
|
||||
dup_pkt->frag_layer = &dup_pkt->layers[pkt->frag_layer - pkt->layers];
|
||||
}
|
||||
memcpy(&dup_pkt->meta, &pkt->meta, sizeof(struct metadata));
|
||||
packet_set_origin_ctx(dup_pkt, (void *)NULL);
|
||||
|
||||
return dup_pkt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user