Skip to content
Snippets Groups Projects
Commit 25cb9f1d authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fix bug in empty bgp mask handling

parent e312bb40
No related merge requests found
......@@ -298,6 +298,9 @@ as_path_match(struct adata *path, struct f_path_mask *mask)
u8 *next;
u32 as;
if (!mask)
return ! path->length;
asterisk = mask->any;
if (asterisk)
{ mask = mask->next; if (!mask) return 1; }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment