mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:02:58 +00:00
pimd: fix bsm buflen check to include pim hdr
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
b1945363fb
commit
d83a854b5b
@ -1267,7 +1267,7 @@ int pim_bsm_process(struct interface *ifp, struct ip *ip_hdr, uint8_t *buf,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (buf_size < sizeof(struct bsm_hdr)) {
|
||||
if (buf_size < (PIM_MSG_HEADER_LEN + sizeof(struct bsm_hdr))) {
|
||||
if (PIM_DEBUG_BSM)
|
||||
zlog_debug("%s: received buffer length of %d which is too small to properly decode",
|
||||
__PRETTY_FUNCTION__, buf_size);
|
||||
|
Loading…
Reference in New Issue
Block a user