diff options
Diffstat (limited to 'lib/sockunion.c')
-rw-r--r-- | lib/sockunion.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c index 75419b11..6a40f332 100644 --- a/lib/sockunion.c +++ b/lib/sockunion.c @@ -238,6 +238,7 @@ sockunion_normalise_mapped (union sockunion *su) { memset (&sin, 0, sizeof (struct sockaddr_in)); sin.sin_family = AF_INET; + sin.sin_port = su->sin6.sin6_port; memcpy (&sin.sin_addr, ((char *)&su->sin6.sin6_addr) + 12, 4); memcpy (su, &sin, sizeof (struct sockaddr_in)); } |