mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Fixes bug in ORIGIN check.
This commit is contained in:
parent
29c430f856
commit
da95a7a7da
@ -39,9 +39,9 @@ struct attr_desc {
|
||||
};
|
||||
|
||||
static int
|
||||
bgp_check_origin(struct bgp_proto *p UNUSED, byte *a UNUSED, int len)
|
||||
bgp_check_origin(struct bgp_proto *p UNUSED, byte *a, int len UNUSED)
|
||||
{
|
||||
if (len > 2)
|
||||
if (*a > 2)
|
||||
return 6;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user