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