Don't call msg_hdr_ntoh twice

This commit is contained in:
Joseph C. Lehner 2016-02-06 19:32:46 +02:00
parent a83a32ddf9
commit e315ecf3d2

1
nmrp.c
View file

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