Revision a7fc92ab

View differences:

util/udpSocket.c
244 244

  
245 245
	/* get the error from the error que:  */
246 246
	returnStatus = recvmsg(udpSocket,&msgh,MSG_ERRQUEUE|MSG_DONTWAIT);
247
	if (returnStatus <= 0) {
248
		return -1;
249
	}
247 250
	for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh,cmsg)){
248 251
		//fill the error pointer
249 252
		if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_RECVERR) {

Also available in: Unified diff