summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-04-18 06:41:01 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-04-18 06:41:01 +0000
commitcce63115804cca49f6a09ef82539d4527ac2dfa1 (patch)
treec596dbf894bc34400402118ea5e8bbb00ee1ca9b /regress/usr.sbin
parente62334e5cd8110dd6d3f523d6589b6fe24734987 (diff)
I reversed flowspec_cmp() so adjust the code here as well.
Reminded by anton@
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r--regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c b/regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
index e25826858c6..52a1a51f9ed 100644
--- a/regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
+++ b/regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_flowspec_test.c,v 1.1 2023/04/17 08:02:55 claudio Exp $ */
+/* $OpenBSD: rde_flowspec_test.c,v 1.2 2023/04/18 06:41:00 claudio Exp $ */
/*
* Copyright (c) 2023 Claudio Jeker <claudio@openbsd.org>
@@ -119,8 +119,8 @@ test_flowspec_valid(void)
static int
do_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6)
{
- if (flowspec_cmp(a, alen, b, blen, is_v6) != 1 ||
- flowspec_cmp(b, blen, a, alen, is_v6) != -1)
+ if (flowspec_cmp(a, alen, b, blen, is_v6) != -1 ||
+ flowspec_cmp(b, blen, a, alen, is_v6) != 1)
return -1;
return 0;
}