Fix potential ByteBuf leak in bgp-inet 49/96949/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 15:34:54 +0000 (17:34 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 20 Jul 2021 15:35:12 +0000 (17:35 +0200)
commit8c668767ef84c922aaedf6f991b7e7ff045c5e2a
treec7a2b37d8f0ecc84bf0dcbd361187a94dc12965e
parent2fe9e9c53a13f6dc5dfeb17979af8803c536e0cb
Fix potential ByteBuf leak in bgp-inet

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

JIRA: BGPCEP-973
Change-Id: Ia33e199d63ea05fe4d3383384970f7aaf4441757
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/extensions/inet/src/main/java/org/opendaylight/protocol/bgp/inet/codec/Ipv6BgpPrefixSidParser.java