Skip to content

Commit 59edc2e

Browse files
committed
wip
1 parent ae4de01 commit 59edc2e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wolfssl/test.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,10 @@ static WC_INLINE void tcp_connect(SOCKET_T* sockfd, const char* ip, word16 port,
15421542
tcp_socket(sockfd, udp, sctp);
15431543

15441544
if (!udp) {
1545-
if (connect(*sockfd, (const struct sockaddr*)&addr, sizeof(addr)) != 0)
1545+
if (connect(*sockfd, (const struct sockaddr*)&addr, sizeof(addr)) != 0) {
1546+
perror("connect");
15461547
err_sys_with_errno("tcp connect failed");
1548+
}
15471549
}
15481550
}
15491551

0 commit comments

Comments
 (0)