From: Otto Moerbeek Date: Wed, 26 Jun 2019 08:03:07 +0000 (+0200) Subject: Fixerror: flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct MMReceiver' X-Git-Tag: dnsdist-1.4.0-rc1~86^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=392966bb6f5d3184e82ababaad493787ea3fac43;p=thirdparty%2Fpdns.git Fixerror: flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct MMReceiver' --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index dddcb79d8a..2f46920cc7 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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: