From: Renato Westphal Date: Tue, 10 Oct 2017 12:41:26 +0000 (-0300) Subject: ldpd: send correct notification code upon receipt of malformed packet X-Git-Tag: frr-4.0-dev~220^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1319%2Fhead;p=mirror%2Ffrr.git ldpd: send correct notification code upon receipt of malformed packet Signed-off-by: Renato Westphal --- diff --git a/ldpd/packet.c b/ldpd/packet.c index be7f2ba649..4a4b258b91 100644 --- a/ldpd/packet.c +++ b/ldpd/packet.c @@ -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);