Merge pull request #1120 from cetic/pr-fix-cooja-packet-analyzer

Cooja: Clone packet data before modifying it in packet analyser
This commit is contained in:
Fredrik Österlind 2015-09-23 09:08:08 +02:00
commit e731848624

View file

@ -27,7 +27,7 @@ public abstract class PacketAnalyzer {
public Packet(byte[] data, int level) { public Packet(byte[] data, int level) {
this.level = level; this.level = level;
this.data = data; this.data = data.clone();
this.size = data.length; this.size = data.length;
} }