[ONOS-7514] Fix for broken EAP introduced in commit f0c4761.
Change-Id: I439bcde21333472e04836acf377890a9ad772683
diff --git a/utils/misc/src/main/java/org/onlab/packet/RADIUS.java b/utils/misc/src/main/java/org/onlab/packet/RADIUS.java
index fff2276..3f3b517 100644
--- a/utils/misc/src/main/java/org/onlab/packet/RADIUS.java
+++ b/utils/misc/src/main/java/org/onlab/packet/RADIUS.java
@@ -262,8 +262,9 @@
* Decapsulates an EAP packet from the RADIUS packet.
*
* @return An EAP object containing the reassembled EAP message
+ * @throws DeserializationException if packet deserialization fails
*/
- public EAP decapsulateMessage() {
+ public EAP decapsulateMessage() throws DeserializationException {
EAP message = new EAP();
ByteArrayOutputStream messageStream = new ByteArrayOutputStream();
// Iterating through EAP-Message attributes to concatenate their value
@@ -275,7 +276,7 @@
}
}
// Assembling EAP object from the concatenated stream
- //message.deserialize(messageStream.toByteArray(), 0, messageStream.size());
+ message = EAP.deserializer().deserialize(messageStream.toByteArray(), 0, messageStream.size());
return message;
}