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

Don't use deprecated function: inet_addr()

parent 1c365418
Branches
No related tags found
No related merge requests found
......@@ -2959,7 +2959,7 @@ handle_addrs(char *host, struct sockaddr_in *addr4, socklen_t *addr4len, struct
if (p != NULL)
*p = 0;
ia = inet_addr(host);
ia = parseIPv4Address(host);
if (ia != INADDR_NONE) {
if (*addr4len == 0) {
addr4->sin_addr.s_addr = ia;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment