yes, windows still sucks
authorNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 19:16:02 +0000 (19:16 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 18 Aug 2010 19:16:02 +0000 (19:16 +0000)
src/transport/gnunet-nat-client-windows.c

index d5ecf50988acdd3f3ebd6e80f674886d24d71fbd..e5979dd24b8f0c2325814496121ce8c907a74a4f 100644 (file)
@@ -373,6 +373,9 @@ send_icmp (const struct in_addr *my_ip,
   size_t off;
   int err;
 
+  /* ip header: send to (known) ip address */
+  off = 0;
+
   dst.sin_family = AF_INET;
   //dst.sin_addr = *other;
   dst.sin_addr = dummy;
@@ -385,8 +388,6 @@ send_icmp (const struct in_addr *my_ip,
 
   fprintf(stderr, "Sent %d bytes (wanted %d)\n", err, off);
 
-  /* ip header: send to (known) ip address */
-  off = 0;
   memset(&ip_pkt, 0, sizeof(ip_pkt));
   ip_pkt.vers_ihl = 0x45;
   ip_pkt.tos = 0;