mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 05:00:23 +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);
|
msg_len = ntohs(msg->length);
|
||||||
if (msg_len < LDP_MSG_LEN ||
|
if (msg_len < LDP_MSG_LEN ||
|
||||||
(msg_len + LDP_MSG_DEAD_LEN) > pdu_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);
|
msg->type);
|
||||||
free(buf);
|
free(buf);
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user