From 1389f3699fc643dac6fd4d2f19fb59da3624a2fa Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 5 Nov 2008 21:39:04 +0100 Subject: Fixes bugs in IPv6 code caused by recent commits. --- proto/bgp/packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/bgp') diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 84e6ffd..00cdf03 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -700,7 +700,7 @@ bgp_do_rx_update(struct bgp_conn *conn, /* Create fake NEXT_HOP attribute */ if (len < 1 || (*x != 16 && *x != 32) || len < *x + 2) goto bad; - bgp_attach_attr_ip(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, x[1]); + memcpy(bgp_attach_attr_wa(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, 16), x+1, 16); len -= *x + 2; x += *x + 1; -- cgit v1.2.3