mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-21 23:31:11 +00:00
Clone packet data before modifying it
This commit is contained in:
parent
e762d7eb50
commit
7a56d91c50
@ -27,7 +27,7 @@ public abstract class PacketAnalyzer {
|
||||
|
||||
public Packet(byte[] data, int level) {
|
||||
this.level = level;
|
||||
this.data = data;
|
||||
this.data = data.clone();
|
||||
this.size = data.length;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user