]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
AS# in bgp.agreggator was a signed integer - fixed.
authorOndrej Filip <feela@network.cz>
Mon, 12 Nov 2012 12:48:29 +0000 (13:48 +0100)
committerOndrej Filip <feela@network.cz>
Mon, 12 Nov 2012 12:48:29 +0000 (13:48 +0100)
proto/bgp/attrs.c

index 9f71544ec292867f17bb6c64da2fbe9e064690aa..98b2f2c20599451a2330e8589d01c79c20befbe9 100644 (file)
@@ -238,7 +238,7 @@ bgp_format_aggregator(eattr *a, byte *buf, int buflen UNUSED)
   as = get_u32(data);
   data += 4;
 
-  bsprintf(buf, "%d.%d.%d.%d AS%d", data[0], data[1], data[2], data[3], as);
+  bsprintf(buf, "%d.%d.%d.%d AS%u", data[0], data[1], data[2], data[3], as);
 }
 
 static int