From: claudio Date: Tue, 27 Apr 2021 09:07:10 +0000 (+0000) Subject: Fix notification sub-error code for syntactically incorrect nexthops. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6387c72393047b391996290a77621c5482498801;p=openbsd Fix notification sub-error code for syntactically incorrect nexthops. The right suberror is ERR_UPD_NEXTHOP. Reported by cjt (melissa_cjt at 163.com) OK benno@ --- diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 6a15c895508..bb3be1adb36 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.518 2021/04/24 17:04:24 deraadt Exp $ */ +/* $OpenBSD: rde.c,v 1.519 2021/04/27 09:07:10 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -1710,7 +1710,7 @@ bad_flags: */ tmp32 = ntohl(nexthop.v4.s_addr); if (IN_MULTICAST(tmp32) || IN_BADCLASS(tmp32)) { - rde_update_err(peer, ERR_UPDATE, ERR_UPD_NETWORK, + rde_update_err(peer, ERR_UPDATE, ERR_UPD_NEXTHOP, op, len); return (-1); }