Fix bug in parser introduced by GCC fix
authorHenning Rogge <hrogge@googlemail.com>
Sun, 13 Feb 2011 12:37:17 +0000 (13:37 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Sun, 13 Feb 2011 12:37:17 +0000 (13:37 +0100)
src/parser.c

index 0aaa8b1..dafb0e8 100644 (file)
@@ -261,6 +261,9 @@ parse_packet(uint8_t *binary, int size, struct interface *in_if, union olsr_ip_a
     packetparser->function(&pkt, binary, in_if, from_addr);
   }
 
+  /* advance pointer to messages */
+  curr += 4;
+
   for (;curr <= end - MIN_MESSAGE_SIZE(); curr += msg.size) {
     const uint8_t *msg_payload = curr;
     olsr_parse_msg_hdr(&msg_payload, &msg);