diff options
-rw-r--r-- | usr.sbin/bgpd/rde_update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c index 0b6f835891b..d47461d02ff 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.39 2005/08/10 08:34:06 claudio Exp $ */ +/* $OpenBSD: rde_update.c,v 1.40 2005/10/19 10:43:01 henning Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -1043,7 +1043,7 @@ up_dump_mp_reach(u_char *buf, u_int16_t *len, struct rde_peer *peer) datalen += upa->mpattr_len; wpos -= upa->mpattr_len; memcpy(buf + wpos, upa->mpattr, upa->mpattr_len); - + if (datalen > 255) { wpos -= 2; tmp = htons(datalen); |