-/* $OpenBSD: output.c,v 1.11 2020/12/30 07:31:19 claudio Exp $ */
+/* $OpenBSD: output.c,v 1.12 2021/01/25 09:17:33 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
case ATTR_ASPATH:
case ATTR_AS4_PATH:
/* prefer 4-byte AS here */
- e4 = aspath_verify(data, alen, 1);
- e2 = aspath_verify(data, alen, 0);
+ e4 = aspath_verify(data, alen, 1, 0);
+ e2 = aspath_verify(data, alen, 0, 0);
if (e4 == 0 || e4 == AS_ERR_SOFT) {
path = data;
} else if (e2 == 0 || e2 == AS_ERR_SOFT) {
-/* $OpenBSD: output_json.c,v 1.5 2020/12/30 07:31:19 claudio Exp $ */
+/* $OpenBSD: output_json.c,v 1.6 2021/01/25 09:17:33 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
case ATTR_ASPATH:
case ATTR_AS4_PATH:
/* prefer 4-byte AS here */
- e4 = aspath_verify(data, alen, 1);
- e2 = aspath_verify(data, alen, 0);
+ e4 = aspath_verify(data, alen, 1, 0);
+ e2 = aspath_verify(data, alen, 0, 0);
if (e4 == 0 || e4 == AS_ERR_SOFT) {
path = data;
} else if (e2 == 0 || e2 == AS_ERR_SOFT) {