Skip to content
Snippets Groups Projects
Commit 987de545 authored by Martin Mareš's avatar Martin Mareš
Browse files

Fixed stupid bug in as_path_format().

parent 9165888a
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ void
as_path_format(struct adata *path, byte *buf, unsigned int size)
{
byte *p = path->data;
byte *e = p + path->length - 8;
byte *end = buf + size;
byte *e = p + path->length;
byte *end = buf + size - 8;
int sp = 1;
int l, type, isset, as;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment