summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-02-21 16:20:45 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-02-21 16:20:45 +0100
commit25cb9f1d0165df5e86956021cc3e6ee87730ef3b (patch)
tree18ce189a06332aeeb6f8b482fd9b46cde829567d
parente312bb4014d5b4ccc706c737f4362ac6ca1046ee (diff)
downloadbird-25cb9f1d0165df5e86956021cc3e6ee87730ef3b.tar
bird-25cb9f1d0165df5e86956021cc3e6ee87730ef3b.zip
Fix bug in empty bgp mask handling
-rw-r--r--nest/a-path.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/a-path.c b/nest/a-path.c
index ad9780c..7ac50e1 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; }