commit | 06eeaed16f2e2d48317e39f57f9c69cb60881e29 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Fri Apr 07 00:47:56 2017 +0900 |
committer | Jian Li <pyguni@gmail.com> | Thu Apr 06 15:59:03 2017 +0000 |
tree | af6cf427bd35842cf8f809c5a7eaba2b9e1a8d5b | |
parent | 3a657c49847c123a8c1b214a6e390cacd0dd3a9d [diff] |
Bugfix: Only reads the replyRecord when map data present bit is set Change-Id: Id4bd28c1bd4f8ad7a6e92f8812cff0f1e66a2048 (cherry picked from commit af72941251c1c1ce6da3fa89a2340c0058a4f75c)
diff --git a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/DefaultLispMapRequest.java b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/DefaultLispMapRequest.java index 43d90f4..67a4979 100644 --- a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/DefaultLispMapRequest.java +++ b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/DefaultLispMapRequest.java
@@ -375,7 +375,12 @@ } // reply record -> 32 bits - int replyRecord = byteBuf.readInt(); + int replyRecord = 0; + + // only obtains the reply record when map data present bit is set + if (mapDataPresent) { + replyRecord = byteBuf.readInt(); + } return new DefaultRequestBuilder() .withIsAuthoritative(authoritative)