From 25cb9f1d0165df5e86956021cc3e6ee87730ef3b Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Feb 2009 16:20:45 +0100 Subject: Fix bug in empty bgp mask handling --- nest/a-path.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nest/a-path.c b/nest/a-path.c index ad9780c7..7ac50e1b 100644 --- a/nest/a-path.c +++ b/nest/a-path.c @@ -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; } -- cgit v1.2.3