summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 7bcf383..07a25f4 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -734,7 +734,7 @@ interpret(struct f_inst *what)
runtime( "AS Path expected" );
as = 0;
- as_path_get_last(v1.val.ad, &as); /* really last */
+ as_path_get_first(v1.val.ad, &as);
res.type = T_INT;
res.val.i = as;
break;
@@ -744,7 +744,7 @@ interpret(struct f_inst *what)
runtime( "AS path expected" );
as = 0;
- as_path_get_first(v1.val.ad, &as); /* really first */
+ as_path_get_last(v1.val.ad, &as);
res.type = T_INT;
res.val.i = as;
break;