From: Konstantinos Natsakis Date: Thu, 9 Jan 2014 21:48:36 +0000 (+0200) Subject: dnsproxy.cc prints warning if sendmsg fails X-Git-Tag: rec-3.6.0-rc1~252^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1203%2Fhead;p=thirdparty%2Fpdns.git dnsproxy.cc prints warning if sendmsg fails --- diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index fe280e438e..78d06a95b2 100644 --- a/pdns/dnsproxy.cc +++ b/pdns/dnsproxy.cc @@ -212,7 +212,8 @@ void DNSProxy::mainloop(void) if(i->second.anyLocal) { addCMsgSrcAddr(&msgh, cbuf, i->second.anyLocal.get_ptr()); } - sendmsg(i->second.outsock, &msgh, 0); + if(sendmsg(i->second.outsock, &msgh, 0) < 0) + L<second.created=0;