diff --git a/src/switch_utils.c b/src/switch_utils.c index 8ebf16e41c..4a0ddc5aa1 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -1155,7 +1155,7 @@ SWITCH_DECLARE(int) switch_build_uri(char *uri, if (flags & SWITCH_URI_NO_SCOPE && sa->family == AF_INET6) { memcpy(&ss, &sa->sa, sa->salen); - ((struct sockaddr_in6*) &ss)->sin6_scope_id = 0; + ((struct sockaddr_in6*) (intptr_t) &ss)->sin6_scope_id = 0; addr = (const struct sockaddr*) &ss; } else { addr = (const struct sockaddr*) &sa->sa;