]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix memory leak on malformed attribute
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Jun 2014 23:00:51 +0000 (01:00 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 29 Jun 2014 10:47:21 +0000 (12:47 +0200)
commitf80f838b2f54738937ef1281b237710132195c44
treee5dbb9062560ac02ad2e5baf62c8d820560c75d2
parent27bf90a14670283a899b96c56dd23f8413e0973e
bgpd: fix memory leak on malformed attribute

When bgp_attr_parse returns BGP_ATTR_PARSE_ERROR, it may already have
parsed and allocated some attributes before hitting that error.  Free
the attr's data before returning.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_packet.c