From: Ondrej Zajicek Date: Sat, 21 Feb 2009 15:20:45 +0000 (+0100) Subject: Fix bug in empty bgp mask handling X-Git-Tag: v1.2.0~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25cb9f1d0165df5e86956021cc3e6ee87730ef3b;p=thirdparty%2Fbird.git Fix bug in empty bgp mask handling --- diff --git a/nest/a-path.c b/nest/a-path.c index ad9780c73..7ac50e1ba 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; }