]> git.puffer.fish Git - matthieu/frr.git/commit
Fix bugs reported by coverity scan
authorDenil Vira <denil@cumulusnetworks.com>
Thu, 23 Jul 2015 15:47:21 +0000 (08:47 -0700)
committerDenil Vira <denil@cumulusnetworks.com>
Thu, 23 Jul 2015 15:47:21 +0000 (08:47 -0700)
commit683de05f8708a43aabde961329b56b83cd856e31
tree62aafe9358921b39df19cfda0343fb05e9a866e0
parent43fdf718a25be053d6e36c8d0aecfaddc2a155cf
Fix bugs reported by coverity scan

1. Fix useless call in bgpd/bgp_mplsvpn.c
Coverity scan ID : 1302528. Calling "decode_label(pnt)" is only useful
for its return value, which is
ignored. Removed the call.

2. Fix logically dead code in lib/stream.c
Coverity Scan ID 1302488. Test for size==0 makes no sense, since assert
immediately before it
would not let this code happen.

3. Fix Free Pointer dereference in lib/filter.c
Coverity Scan ID 23056. access is accessed after free in
access_list_delete
bgpd/bgp_mplsvpn.c
lib/filter.c
lib/stream.c