2013-08-24 Robbie Walker DESCRIPTION: the great collection of patches from Roberto Puzzanghera [ https://notes.sagredo.eu/en/qmail-notes-185/patching-qmail-82.html ] includes changes to timeoutconn.c function signature as listed below. qmail-qmqpc.c also calls timeoutconn and needs to be patched as well original timeoutconn() signature: int timeoutconn(s,ip,port,timeout) int s; struct ip_address *ip; unsigned int port; int timeout; modifed timeoutconn() signature: int timeoutconn(s,ip,outip,port,timeout) int s; struct ip_address *ip; struct ip_address *outip; unsigned int port; int timeout; diff netqmail-1.06/qmail-qmqpc.c netqmail-1.06.patched/qmail-qmqpc.c 104a105,106 > struct ip_address outip; > outip.d[0]=outip.d[1]=outip.d[2]=outip.d[3]=(unsigned char) 0; 112c114 < if (timeoutconn(qmqpfd,&ip,PORT_QMQP,10) != 0) { --- > if (timeoutconn(qmqpfd,&ip,&outip,PORT_QMQP,10) != 0) {