Remove potential overflow when validating message's length.
authorrenato <renato@openbsd.org>
Sat, 16 Jul 2016 19:24:30 +0000 (19:24 +0000)
committerrenato <renato@openbsd.org>
Sat, 16 Jul 2016 19:24:30 +0000 (19:24 +0000)
commitc31aa80e8e1e783446a45395fc8e0773027c5d78
tree253e37e32106c510e35c09752c4c464a25326af4
parenta78ea73f827928c1e19cfa5f76567b253c6e1213
Remove potential overflow when validating message's length.

Also, use uint16_t for msg_type on gen_msg_hdr().
usr.sbin/ldpd/address.c
usr.sbin/ldpd/ldpe.h
usr.sbin/ldpd/packet.c