mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 04:36:45 +00:00
ldpd: send correct notification code upon receipt of malformed packet
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
50732983b9
commit
a901e098d7
@ -494,7 +494,7 @@ session_read(struct thread *thread)
|
||||
msg_len = ntohs(msg->length);
|
||||
if (msg_len < LDP_MSG_LEN ||
|
||||
(msg_len + LDP_MSG_DEAD_LEN) > pdu_len) {
|
||||
session_shutdown(nbr, S_BAD_TLV_LEN, msg->id,
|
||||
session_shutdown(nbr, S_BAD_MSG_LEN, msg->id,
|
||||
msg->type);
|
||||
free(buf);
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user