mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixed stupid bug in as_path_format().
This commit is contained in:
@ -44,8 +44,8 @@ void
|
|||||||
as_path_format(struct adata *path, byte *buf, unsigned int size)
|
as_path_format(struct adata *path, byte *buf, unsigned int size)
|
||||||
{
|
{
|
||||||
byte *p = path->data;
|
byte *p = path->data;
|
||||||
byte *e = p + path->length - 8;
|
byte *e = p + path->length;
|
||||||
byte *end = buf + size;
|
byte *end = buf + size - 8;
|
||||||
int sp = 1;
|
int sp = 1;
|
||||||
int l, type, isset, as;
|
int l, type, isset, as;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user