diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-02-02 08:29:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-02 08:29:59 -0500 |
| commit | 7d1cbd75e147e3958dc197e7e40b7b50ce597276 (patch) | |
| tree | aac229918b50aef92c52d4feca9d97af0c4fc505 | |
| parent | 7461589c2e41dd33306b1d5cd23689094ac66cd7 (diff) | |
| parent | b1d7888f9b58cf129c6d9a3317035a81b86b829c (diff) | |
Merge pull request #12729 from opensourcerouting/fix/treat-as-withdraw_nlri_update
bgpd: Set attr to NULL when passing NLRI_UPDATE with treat-as-withdraw
| -rw-r--r-- | bgpd/bgp_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 9e7c75318e..080cf0ae40 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2033,7 +2033,8 @@ static int bgp_update_receive(struct peer *peer, bgp_size_t size) break; case NLRI_WITHDRAW: case NLRI_MP_WITHDRAW: - nlri_ret = bgp_nlri_parse(peer, &attr, &nlris[i], 1); + nlri_ret = bgp_nlri_parse(peer, NLRI_ATTR_ARG, + &nlris[i], 1); break; default: nlri_ret = BGP_NLRI_PARSE_ERROR; |
