The following fixes a bad (and to small) array size. Found it only thanks
to a gcc warning.

Regards,
/Niels


Index: vder_packet.c
===================================================================
--- vder_packet.c       (revision 579)
+++ vder_packet.c       (working copy)
@@ -199,7 +199,7 @@
                        } else {
                                struct iphdr *hdr = iphead(packet);
                                uint32_t sender = hdr->saddr;
-                               uint8_t foot[sizeof(hdr) + 8];
+                               uint8_t foot[sizeof(*hdr) + 8];
 
                                memcpy(foot, footprint(packet), sizeof(struct 
iphdr) + 8);
                                if (vder_ip_decrease_ttl(packet)) {

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


------------------------------------------------------------------------------
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to