Skip to content

Instantly share code, notes, and snippets.

@Habbie
Created February 12, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habbie/2c426f666698f3b7fd55 to your computer and use it in GitHub Desktop.
Save Habbie/2c426f666698f3b7fd55 to your computer and use it in GitHub Desktop.
freebsd hack for 3.7.1
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