forked from Mirror/frr
Merge pull request #14129 from samanvithab/bgpd_frr_fix
bgpd: Fix for session reset issue caused by malformed core attributes in update message
This commit is contained in:
commit
7415f1e120
|
@ -3600,6 +3600,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
|
||||||
attr_args.total);
|
attr_args.total);
|
||||||
if (ret == BGP_ATTR_PARSE_PROCEED)
|
if (ret == BGP_ATTR_PARSE_PROCEED)
|
||||||
continue;
|
continue;
|
||||||
|
stream_forward_getp(BGP_INPUT(peer), endp - BGP_INPUT_PNT(peer));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3704,6 +3705,7 @@ enum bgp_attr_parse_ret bgp_attr_parse(struct peer *peer, struct attr *attr,
|
||||||
EC_BGP_ATTRIBUTE_PARSE_WITHDRAW,
|
EC_BGP_ATTRIBUTE_PARSE_WITHDRAW,
|
||||||
"%s: Attribute %s, parse error - treating as withdrawal",
|
"%s: Attribute %s, parse error - treating as withdrawal",
|
||||||
peer->host, lookup_msg(attr_str, type, NULL));
|
peer->host, lookup_msg(attr_str, type, NULL));
|
||||||
|
stream_forward_getp(BGP_INPUT(peer), endp - BGP_INPUT_PNT(peer));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue