diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-19 00:43:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-19 00:43:35 +0000 |
commit | 715984299881265e3659c412d68139255d8c64e7 (patch) | |
tree | bdc96ed41c3c419cbddadd89cb9c7d51687884da /src/dns.cpp | |
parent | 91c14cde8b5c1dd5bd503288cf10bc98084a1b95 (diff) |
Fix all the _FORTIFY_SOURCE warnings except "punned pointer".
We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r-- | src/dns.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 23e1dfcab..0e0f32874 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -731,7 +731,11 @@ DNSInfo DNSRequest::ResultIsReady(DNSHeader &header, int length) int curanswer, o; ResourceRecord rr; unsigned short ptr; - + + /* This is just to keep _FORTIFY_SOURCE happy */ + rr.type = DNS_QUERY_NONE; + rr.rdlength = 0; + if (!(header.flags1 & FLAGS_MASK_QR)) return std::make_pair((unsigned char*)NULL,"Not a query result"); |