mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 20:13:53 +00:00
Merge pull request #1317 from donaldsharp/babel_mem
babeld: Do not copy beyond end of data
This commit is contained in:
commit
73842a0596
@ -50,7 +50,7 @@ struct babel_interface {
|
||||
char have_buffered_id;
|
||||
char have_buffered_nh;
|
||||
char have_buffered_prefix;
|
||||
unsigned char buffered_id[16];
|
||||
unsigned char buffered_id[8];
|
||||
unsigned char buffered_nh[4];
|
||||
unsigned char buffered_prefix[16];
|
||||
unsigned char *sendbuf;
|
||||
|
@ -1080,7 +1080,7 @@ really_send_update(struct interface *ifp,
|
||||
accumulate_bytes(ifp, id, 8);
|
||||
end_message(ifp, MESSAGE_ROUTER_ID, 10);
|
||||
}
|
||||
memcpy(babel_ifp->buffered_id, id, 16);
|
||||
memcpy(babel_ifp->buffered_id, id, sizeof(babel_ifp->buffered_id));
|
||||
babel_ifp->have_buffered_id = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user