Fix bug in empty bgp mask handling
This commit is contained in:
parent
e312bb4014
commit
25cb9f1d01
1 changed files with 3 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue