ldpd: send correct notification code upon receipt of malformed packet

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2017-10-10 09:41:26 -03:00
parent 50732983b9
commit a901e098d7

View File

@ -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);