Skip to content

Commit c5bde28

Browse files
Merge pull request #114 from lealem47/ipv6_build
Fix for building with wolfSSL --enable-ipv6
2 parents 1b160eb + b922440 commit c5bde28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static WC_INLINE void clu_build_addr(SOCKADDR_IN4_T* addr, SOCKADDR_IN6_T* ipv6,
132132
}
133133

134134
if (ipv6 == NULL) {
135-
XMEMSET(addr, 0, sizeof(SOCKADDR_IN_T));
135+
XMEMSET(addr, 0, sizeof(SOCKADDR_IN4_T));
136136

137137
/* peer could be in human readable form */
138138
if ( ((size_t)peer != INADDR_ANY) && isalpha((int)peer[0])) {

0 commit comments

Comments
 (0)