Fix a bug in parameters length setting.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
974d5f4408
commit
e6fe57eec8
1 changed files with 1 additions and 1 deletions
2
bgp.c
2
bgp.c
|
|
@ -1714,7 +1714,7 @@ static int bgp_send_update6(struct bgp_peer *peer)
|
|||
|
||||
/* go back and insert attr_len */
|
||||
attr_len = htons(len - 4);
|
||||
memcpy(&peer->outbuf->packet.data + 2, &attr_len, sizeof(attr_len));
|
||||
memcpy((char *)&peer->outbuf->packet.data + 2, &attr_len, sizeof(attr_len));
|
||||
|
||||
peer->outbuf->packet.header.len = htons(len);
|
||||
peer->outbuf->done = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue