diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-10-28 12:05:01 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-10-28 12:05:01 +0000 |
commit | d57a250d58fbcf4a7b591b84c2bf30550ae82aac (patch) | |
tree | 06fbcce299a8ff4031443739ebe399f5f625f74b | |
parent | 669b28a560bc46a3bb3866c9f01de1261bdfdca1 (diff) |
Remove two fatalx calls in pt_fill since they are wrong.
L3VPN withdraws don't carry a labelstack (see util.c::nlri_get_vpn4()).
OK tb@
-rw-r--r-- | usr.sbin/bgpd/rde_prefix.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde_prefix.c b/usr.sbin/bgpd/rde_prefix.c index d813003870f..28e62fc7beb 100644 --- a/usr.sbin/bgpd/rde_prefix.c +++ b/usr.sbin/bgpd/rde_prefix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_prefix.c,v 1.52 2024/09/10 08:47:51 claudio Exp $ */ +/* $OpenBSD: rde_prefix.c,v 1.53 2024/10/28 12:05:00 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -225,8 +225,6 @@ pt_fill(struct bgpd_addr *prefix, int prefixlen) pte_vpn4.prefixlen = prefixlen; pte_vpn4.rd = prefix->rd; pte_vpn4.labellen = prefix->labellen; - if (prefix->labellen == 0) - fatalx("pt_fill: no MPLS label in VPN addr"); memcpy(pte_vpn4.labelstack, prefix->labelstack, prefix->labellen); return ((struct pt_entry *)&pte_vpn4); @@ -241,8 +239,6 @@ pt_fill(struct bgpd_addr *prefix, int prefixlen) pte_vpn6.prefixlen = prefixlen; pte_vpn6.rd = prefix->rd; pte_vpn6.labellen = prefix->labellen; - if (prefix->labellen == 0) - fatalx("pt_fill: no MPLS label in VPN addr"); memcpy(pte_vpn6.labelstack, prefix->labelstack, prefix->labellen); return ((struct pt_entry *)&pte_vpn6); |