diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-05 21:39:04 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-05 21:39:04 +0100 |
commit | 1389f3699fc643dac6fd4d2f19fb59da3624a2fa (patch) | |
tree | f623daeb3bfcf8dc6c9a6b670e93bab6efa34b25 /proto/bgp | |
parent | baa9ef18c62612bd91a8362ef20427046105c113 (diff) |
Fixes bugs in IPv6 code caused by recent commits.
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 84e6ffd5..00cdf036 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; |