summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-06-23 11:00:38 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-06-23 11:00:38 +0200
commitda95a7a7dad6ebf572adfb448dfc1a5c8400e6ab (patch)
treec81f9e3c175b4db8b350859ca513fe3991a6a411 /proto
parent29c430f8569b90e1962d92a26f96fad7e72d27ec (diff)
downloadbird-da95a7a7dad6ebf572adfb448dfc1a5c8400e6ab.tar
bird-da95a7a7dad6ebf572adfb448dfc1a5c8400e6ab.zip
Fixes bug in ORIGIN check.
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/attrs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index e50f6a9..68f21b9 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -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;
}