opnsense-ports/security/wolfssh/files/patch-wolfssh-test.h
Franco Fichtner f537c84ca8 */*: sync with upstream
Taken from: FreeBSD
2021-08-09 08:45:20 +02:00

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';