Skip to content
Snippets Groups Projects
Commit a1c760a5 authored by deuce's avatar deuce
Browse files

Fix incorrect union member usage.

parent 36a8d166
Branches
Tags
No related merge requests found
......@@ -408,7 +408,7 @@ const char *inet_addrtop(union xp_sockaddr *addr, char *dest, size_t size)
return NULL;
return dest;
}
if(addr->in.sa_family != AF_INET)
if(addr->addr.sa_family != AF_INET)
strncpy(dest, "<Address Family Not Supported>", size);
else
strncpy(dest, inet_ntoa(addr->in.sin_addr), size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment