]> granicus.if.org Git - pdns/commitdiff
Fixerror: flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct MMReceiver'
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2019 08:03:07 +0000 (10:03 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2019 08:03:07 +0000 (10:03 +0200)
pdns/dnsdist.cc

index dddcb79d8a74af5c17afe4d350902305683e2329..2f46920cc72aca88778a18699a0da9ba09a4dce4 100644 (file)
@@ -1618,11 +1618,11 @@ static void MultipleMessagesUDPClientThread(ClientState* cs, LocalHolders& holde
   struct MMReceiver
   {
     char packet[4096];
-    /* used by HarvestDestinationAddress */
-    cmsgbuf_aligned cbuf;
     ComboAddress remote;
     ComboAddress dest;
     struct iovec iov;
+    /* used by HarvestDestinationAddress */
+    cmsgbuf_aligned cbuf;
   };
   const size_t vectSize = g_udpVectorSize;
   /* the actual buffer is larger because: