Skip to content
Snippets Groups Projects
Commit 4f75c814 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix use of inet_ntop() in rblchk()

Aren't void pointers fun!?!
parent 58612f3f
No related branches found
No related tags found
No related merge requests found
Pipeline #8373 passed
......@@ -1915,7 +1915,7 @@ static in_addr_t rblchk(SOCKET sock, const char* prot, union xp_sockaddr *addr,
char tmp[128];
result = ((struct sockaddr_in*)res->ai_addr)->sin_addr.s_addr;
lprintf(LOG_INFO, "%04d %s DNSBL Query: %s resolved to: %s"
, sock, prot, name, inet_ntop(AF_INET, res->ai_addr, tmp, sizeof tmp));
, sock, prot, name, inet_ntop(AF_INET, &((struct sockaddr_in*)res->ai_addr)->sin_addr, tmp, sizeof tmp));
}
freeaddrinfo(res);
return result;
......
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