commit | e48c2d3bc431d7859b0b9e8bbf942de2540a9483 | [log] [tgz] |
---|---|---|
author | Chip Boling <chip@bcsw.net> | Mon Jul 27 10:41:44 2015 -0500 |
committer | Ray Milkey <ray@onlab.us> | Mon Jul 27 20:27:26 2015 +0000 |
tree | b0cc6a796958ef6e2d083fe26856b568e1031405 | |
parent | 4ecaeeacc777934038993f4c77876c3828af91e6 [diff] |
[ONOS-2450] Fix for HEADER_SIZE error in EAP deserialization Change-Id: I0486e27b968e354bd82aad10ad568e61c08d567b
diff --git a/utils/misc/src/main/java/org/onlab/packet/EAP.java b/utils/misc/src/main/java/org/onlab/packet/EAP.java index 3fba4c9..57d32a6 100644 --- a/utils/misc/src/main/java/org/onlab/packet/EAP.java +++ b/utils/misc/src/main/java/org/onlab/packet/EAP.java
@@ -198,7 +198,7 @@ eap.identifier = bb.get(); eap.length = bb.getShort(); - checkHeaderLength(length, HEADER_LENGTH + eap.length); + checkHeaderLength(length, eap.length); int dataLength; if (eap.code == REQUEST || eap.code == RESPONSE) {