]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix useless call in bgpd/bgp_mplsvpn.c
authorDenil Vira <denil@cumulusnetworks.com>
Thu, 23 Jul 2015 13:52:18 +0000 (06:52 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 May 2016 00:34:57 +0000 (20:34 -0400)
Coverity scan ID : 1302528. Calling "decode_label(pnt)" is only useful for its return value, which is
ignored. Removed the call.

Signed-off-by: Denil Vira <denil@cumulusnetworks.com>
(cherry picked from commit 7053d8176ce502aabe39bf167f01354654bde5df)

bgpd/bgp_mplsvpn.c

index 2510e2e040b7e95a28547356a814ac2a64373824..d7ac8923e6d8385f4281c438530e4894a376b5f1 100644 (file)
@@ -136,9 +136,6 @@ bgp_nlri_parse_vpnv4 (struct peer *peer, struct attr *attr,
          return -1;
        }
 
-      /* XXX: Not doing anything with the label */
-      decode_label (pnt);
-
       /* Fetch prefix length. */
       prefixlen = *pnt++;
       p.family = afi2family (packet->afi);