Fix potential ByteBuf leaks in bgp-labeled-unicast 48/96948/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 15:33:36 +0000 (17:33 +0200)
commit2fe9e9c53a13f6dc5dfeb17979af8803c536e0cb
treec6814d35282a0551b7aa595ef74b2dbe1c4a95ce
parentdead9dfa4908530e51c0a49a6ff18466dde15470
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>
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