From da37bf5d2ed2f7b9359bd37281a6f8034032f008 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 19 Oct 2005 10:43:02 +0000 Subject: tsc tsc tsc, tabs are not always holy --- usr.sbin/bgpd/rde_update.c | 4 ++-- 1 file 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 @@ -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); -- cgit v1.2.3