Skip to content
Snippets Groups Projects
Commit b8a5f585 authored by rswindell's avatar rswindell
Browse files

Now checks return value of send().

parent ce462042
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,14 @@ int dns_getmx(char* name, char* mx, char* mx2
len-=sizeof(msghdr.length);
}
send(sock,msg+offset,len,0);
i=send(sock,msg+offset,len,0);
if(i!=len) {
if(i==SOCKET_ERROR)
result=ERROR_VALUE;
else
result=-2;
return(result);
}
tv.tv_sec=timeout;
tv.tv_usec=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment