diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-02-21 16:20:45 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-02-21 16:20:45 +0100 |
commit | 25cb9f1d0165df5e86956021cc3e6ee87730ef3b (patch) | |
tree | 18ce189a06332aeeb6f8b482fd9b46cde829567d | |
parent | e312bb4014d5b4ccc706c737f4362ac6ca1046ee (diff) | |
download | bird-25cb9f1d0165df5e86956021cc3e6ee87730ef3b.tar bird-25cb9f1d0165df5e86956021cc3e6ee87730ef3b.zip |
Fix bug in empty bgp mask handling
-rw-r--r-- | nest/a-path.c | 3 |
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; } |