0
0
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:
Ondrej Zajicek 2009-06-23 11:00:38 +02:00
parent 29c430f856
commit da95a7a7da

View File

@ -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;
}