Commit da95a7a7 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes bug in ORIGIN check.

parent 29c430f8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment