13 lines
590 B
C
13 lines
590 B
C
--- wolfssh/test.h.orig 2021-07-23 17:15:46 UTC
|
|
+++ wolfssh/test.h
|
|
@@ -441,8 +441,8 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, con
|
|
memset(&hints, 0, sizeof(hints));
|
|
|
|
hints.ai_family = AF_INET_V;
|
|
- hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
|
|
- hints.ai_protocol = udp ? IPPROTO_UDP : IPPROTO_TCP;
|
|
+ hints.ai_socktype = 1 ? SOCK_DGRAM : SOCK_STREAM;
|
|
+ hints.ai_protocol = 1 ? IPPROTO_UDP : IPPROTO_TCP;
|
|
|
|
WSNPRINTF(strPort, sizeof(strPort), "%d", port);
|
|
strPort[79] = '\0';
|