diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-01-02 16:57:45 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-01-02 16:57:45 +0100 |
commit | d493d0f180e3df1f33d344d8b28cc1743201210b (patch) | |
tree | 12f7d0feac582708b1fea3f73a08838b7c10ac3e /proto/bgp/packets.c | |
parent | e62cd033079c4bc988a467f4122c7c276c77fdde (diff) |
BGP: Fix unknown attribute handling
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r-- | proto/bgp/packets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index ca942880..95a974eb 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -2284,6 +2284,8 @@ bgp_rx_update(struct bgp_conn *conn, byte *pkt, uint len) if (s.attr_len) ea = bgp_decode_attrs(&s, s.attrs, s.attr_len); + else + ea = NULL; /* Check for End-of-RIB marker */ if (!s.attr_len && !s.ip_unreach_len && !s.ip_reach_len) |