From 76511d0d849283b94be9d380e4d4c9a30721e3e5 Mon Sep 17 00:00:00 2001 From: Konstantinos Natsakis Date: Thu, 9 Jan 2014 23:48:36 +0200 Subject: [PATCH] dnsproxy.cc prints warning if sendmsg fails --- pdns/dnsproxy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.2