msgh.msg_iovlen = 1;
msgh.msg_name = (struct sockaddr*)&i->second.remote;
msgh.msg_namelen = i->second.remote.getSocklen();
+ msgh.msg_control=NULL;
if(i->second.anyLocal) {
addCMsgSrcAddr(&msgh, cbuf, i->second.anyLocal.get_ptr(), 0);
fillMSGHdr(&msgh, &iov, cbuf, 0, (char*)buffer.c_str(), buffer.length(), &p->d_remote);
+ msgh.msg_control=NULL;
if(p->d_anyLocal) {
addCMsgSrcAddr(&msgh, cbuf, p->d_anyLocal.get_ptr(), 0);
}
- else {
- msgh.msg_control=NULL;
- }
DLOG(L<<Logger::Notice<<"Sending a packet to "<< p->getRemote() <<" ("<< buffer.length()<<" octets)"<<endl);
if(buffer.length() > p->getMaxReplyLen()) {
L<<Logger::Error<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl;