From: Joseph C. Lehner Date: Sat, 6 Feb 2016 17:32:46 +0000 (+0200) Subject: Don't call msg_hdr_ntoh twice X-Git-Tag: v0.9~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e315ecf3d2f9af533c4c127efc521e6464cbadb1;p=oweals%2Fnmrpflash.git Don't call msg_hdr_ntoh twice --- diff --git a/nmrp.c b/nmrp.c index 781a0d2..c0eb546 100644 --- a/nmrp.c +++ b/nmrp.c @@ -158,7 +158,6 @@ static int msg_ntoh(struct nmrp_msg *msg) struct nmrp_opt *opt = msg->opts; int remaining; - msg_hdr_ntoh(msg); remaining = msg->len - NMRP_HDR_LEN; // FIXME maximum of two options supported, maximum option