Created
February 12, 2015 16:56
-
-
Save Habbie/2c426f666698f3b7fd55 to your computer and use it in GitHub Desktop.
freebsd hack for 3.7.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index fdee0f1..f0b06ad 100644 | |
--- a/pdns_recursor.cc | |
+++ b/pdns_recursor.cc | |
@@ -688,6 +688,8 @@ void startDoResolve(void *p) | |
fillMSGHdr(&msgh, &iov, cbuf, 0, (char*)&*packet.begin(), packet.size(), &dc->d_remote); | |
if(dc->d_local.sin4.sin_family) | |
addCMsgSrcAddr(&msgh, cbuf, &dc->d_local); | |
+ else | |
+ msgh.msg_control=0; | |
sendmsg(dc->d_socket, &msgh, 0); | |
if(!SyncRes::s_nopacketcache && !variableAnswer ) { | |
t_packetCache->insertResponsePacket(string((const char*)&*packet.begin(), packet.size()), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment