summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index d5a6335ed9e..365b2de26bc 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.181 2005/11/30 13:45:19 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.182 2005/12/08 16:02:56 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1151,6 +1151,7 @@ rde_attr_error(u_char *p, u_int16_t len, struct rde_aspath *attr,
if (len - plen < 2)
return (op);
UPD_READ(&attr_len, p, plen, 2);
+ attr_len = ntohs(attr_len);
} else {
UPD_READ(&tmp8, p, plen, 1);
attr_len = tmp8;