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

Using inet_addr() instead of inet_aton() - not supported by WinSock.

parent ca0ba34d
No related branches found
No related tags found
No related merge requests found
......@@ -1481,8 +1481,7 @@ static int chk_received_hdr(SOCKET socket,const char *buf,IN_ADDR *dnsbl_result)
break;
strncpy(ip,p,16);
ip[15]=0;
if(!inet_aton(ip,&check_addr))
break;
check_addr.s_addr = inet_addr(ip);
if(startup->options&MAIL_OPT_DNSBL_DEBUG)
lprintf("%04d DEBUG checking %s (%s)",socket,host_name,ip);
if((dnsbl_result->s_addr=dns_blacklisted(socket,check_addr,host_name,dnsbl)))
......
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