Commit 628fff37 authored by rswindell's avatar rswindell
Browse files

Fixed socket leak in dns_getmx() if send() called failed.

parent a7c33568
...@@ -294,6 +294,7 @@ int dns_getmx(char* name, char* mx, char* mx2 ...@@ -294,6 +294,7 @@ int dns_getmx(char* name, char* mx, char* mx2
result=ERROR_VALUE; result=ERROR_VALUE;
else else
result=-2; result=-2;
mail_close_socket(sock);
return(result); return(result);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment