Skip to content

Commit

Permalink
Merge pull request FRRouting#14129 from samanvithab/bgpd_frr_fix
Browse files Browse the repository at this point in the history
bgpd: Fix for session reset issue caused by malformed core attributes  in update message
  • Loading branch information
donaldsharp authored Aug 2, 2023
2 parents dd08585 + 70ff940 commit 7415f1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bgpd/bgp_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3600,6 +3600,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
attr_args.total);
if (ret == BGP_ATTR_PARSE_PROCEED)
continue;
stream_forward_getp(BGP_INPUT(peer), endp - BGP_INPUT_PNT(peer));
goto done;
}

Expand Down Expand Up @@ -3704,6 +3705,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
EC_BGP_ATTRIBUTE_PARSE_WITHDRAW,
"%s: Attribute %s, parse error - treating as withdrawal",
peer->host, lookup_msg(attr_str, type, NULL));
stream_forward_getp(BGP_INPUT(peer), endp - BGP_INPUT_PNT(peer));
goto done;
}

Expand Down

0 comments on commit 7415f1e

Please sign in to comment.