0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

Fix bug in empty bgp mask handling

This commit is contained in:
Ondrej Zajicek 2009-02-21 16:20:45 +01:00
parent e312bb4014
commit 25cb9f1d01

View File

@ -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; }