]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes bug in ORIGIN check.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 23 Jun 2009 09:00:38 +0000 (11:00 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 23 Jun 2009 09:00:38 +0000 (11:00 +0200)
proto/bgp/attrs.c

index e50f6a9c843d23d43928d8811a45ed475b99bce3..68f21b97c75b9868c8a17525eb70cd6397ceda4a 100644 (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;
 }