Commit fb2da8b5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in message parser.

parent a5ca9158
...@@ -206,7 +206,7 @@ parse_packet(const unsigned char *from, struct network *net, ...@@ -206,7 +206,7 @@ parse_packet(const unsigned char *from, struct network *net,
len, format_address(from), net->ifname); len, format_address(from), net->ifname);
} else if(type == MESSAGE_ACK_REQ) { } else if(type == MESSAGE_ACK_REQ) {
unsigned short nonce, interval; unsigned short nonce, interval;
if(len < 2) goto fail; if(len < 6) goto fail;
DO_NTOHS(nonce, message + 4); DO_NTOHS(nonce, message + 4);
DO_NTOHS(interval, message + 6); DO_NTOHS(interval, message + 6);
debugf("Received ack-req (%04X %d) from %s on %s.\n", debugf("Received ack-req (%04X %d) from %s on %s.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment