From: claudio Date: Wed, 8 Aug 2018 13:49:20 +0000 (+0000) Subject: Make the (non-)transitive handling of ext communities a bit more obvious. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9b84c3c2c4bb8b79bd71af6d1c90d3255065a1c2;p=openbsd Make the (non-)transitive handling of ext communities a bit more obvious. --- diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c index d7270fb0d32..8a44f0d0875 100644 --- a/usr.sbin/bgpd/rde_update.c +++ b/usr.sbin/bgpd/rde_update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_update.c,v 1.96 2018/08/03 16:31:22 claudio Exp $ */ +/* $OpenBSD: rde_update.c,v 1.97 2018/08/08 13:49:20 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker @@ -881,13 +881,16 @@ up_generate_attr(struct rde_peer *peer, struct update_attr *upa, free(ndata); return (-1); } - } else + } else { + /* everything got removed */ r = 0; - break; + } + } else { + if ((r = attr_write(up_attr_buf + wlen, + len, oa->flags, oa->type, oa->data, + oa->len)) == -1) + return (-1); } - if ((r = attr_write(up_attr_buf + wlen, len, - oa->flags, oa->type, oa->data, oa->len)) == -1) - return (-1); break; default: /* unknown attribute */