diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-08-09 22:25:41 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-12-05 00:10:37 +0000 |
commit | 2fb42eb4af3444b11e7b1210323637937ef0b005 (patch) | |
tree | 9318aea61d70628e5e8be4be9fb1d5a0d7773a02 /src/network/kernel | |
parent | 4242fe0a039f271b98f7a2b6125ba76a45783ad1 (diff) |
Properly set (sa|sin|sin6)_len on Unix systems that need it
Change-Id: I7de033f80b0e4431b7f1ffff13f90288a50606e7
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qdnslookup_unix.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp index a5e97c4a93..cb8129efc5 100644 --- a/src/network/kernel/qdnslookup_unix.cpp +++ b/src/network/kernel/qdnslookup_unix.cpp @@ -37,6 +37,7 @@ #include <qscopedpointer.h> #include <qurl.h> #include <private/qmutexpool_p.h> +#include <private/qnativesocketengine_p.h> #include <sys/types.h> #include <netinet/in.h> @@ -160,6 +161,7 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN state._u._ext.nscount6 = 1; ns->sin6_family = AF_INET6; ns->sin6_port = htons(53); + SetSALen::set(ns, sizeof(*ns)); Q_IPV6ADDR ipv6Address = nameserver.toIPv6Address(); for (int i=0; i<16; i++) { |