Fix potential ByteBuf leaks in bgp-labeled-unicast 55/96955/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 15:33:18 +0000 (17:33 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 17:18:26 +0000 (19:18 +0200)
commite9b3c8b5a3e92da24a417d4b8ec1d74f671db832
treedd569dcd695b991c9c22345cd7b9c2e711a2a330
parent526389db4553406d099f4db867605cfd01b6ca0c
Fix potential ByteBuf leaks in bgp-labeled-unicast

We are using ByteBuf.readBytes() to actually skip over some content,
use ByteBuf.skipBytes() instead.

JIRA: BGPCEP-973
Change-Id: I1bcdcc47b7ac6352e5bdc80064d40cf4692e7eb6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2fe9e9c53a13f6dc5dfeb17979af8803c536e0cb)
bgp/extensions/labeled-unicast/src/main/java/org/opendaylight/protocol/bgp/labeled/unicast/LabelIndexTlvParser.java
bgp/extensions/labeled-unicast/src/main/java/org/opendaylight/protocol/bgp/labeled/unicast/OriginatorSrgbTlvParser.java