Skip to content
Snippets Groups Projects
Commit f6dba0b8 authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Ensuring that isTruncated is always assigned during deserialization.

parent 1dce3e86
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,10 @@ public class IPv4 extends BasePacket {
this.payload = payload.deserialize(data, bb.position(), bb.limit()-bb.position());
this.payload.setParent(this);
if (this.totalLength != length) this.isTruncated = true;
if (this.totalLength != length)
this.isTruncated = true;
else
this.isTruncated = false;
return this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment