When the RDE issues an UPDATE NOTIFICATION because of some fatal error
like max-prefix count reached the peer is put into state PEER_ERR by
rde_update_err() and all UDPDATEs that are still queued should be dropped.
Noticed and OK deraadt@, OK job@
-/* $OpenBSD: rde.c,v 1.523 2021/05/27 14:32:08 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.524 2021/05/27 16:32:13 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
switch (imsg.hdr.type) {
case IMSG_UPDATE:
+ if (peer->state != PEER_UP)
+ break;
rde_update_dispatch(peer, &imsg);
break;
case IMSG_SESSION_UP: