Fixes bug in ORIGIN check.
This commit is contained in:
parent
29c430f856
commit
da95a7a7da
1 changed files with 2 additions and 2 deletions
|
@ -39,9 +39,9 @@ struct attr_desc {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
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 6;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue