diff --git a/lib/fetch/ftp.c b/lib/fetch/ftp.c index ca6d24dd..f40a51d0 100644 --- a/lib/fetch/ftp.c +++ b/lib/fetch/ftp.c @@ -140,7 +140,7 @@ unmappedaddr(struct sockaddr_in6 *sin6, socklen_t *len) !IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) return; sin4 = (struct sockaddr_in *)sin6; - addr = *(uint32_t *)&sin6->sin6_addr.s6_addr[12]; + addr = *(uint8_t *)&sin6->sin6_addr.s6_addr[12]; port = sin6->sin6_port; memset(sin4, 0, sizeof(struct sockaddr_in)); sin4->sin_addr.s_addr = addr;