]> git.puffer.fish Git - mirror/frr.git/commit
ldpd: always check if the received labels are valid
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 3 Mar 2017 20:50:22 +0000 (17:50 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 3 Mar 2017 20:50:22 +0000 (17:50 -0300)
commit235b275392e0c29067301a2d8e04aecb625f339b
tree8b8dc3d6bb3cf5d6779f1f11f75f7de68378fdf6
parent236c69359ec99e3683c1e0d92fd0262e1d350b95
ldpd: always check if the received labels are valid

We were doing some sanity checks only for labels of Label Mapping
messages. Now do the same checks for labels of Label Release and Label
Withdraw messages as well.

While here, plug a small memleak in the error path of recv_labelmessage().

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/labelmapping.c