freebsd-ports/security/wolfssh/files/patch-wolfssh-test.h
Sunpoet Po-Chuan Hsieh a49b3f075c Add wolfssh 1.4.5
The wolfSSH library is a lightweight SSHv2 client and server library written in
ANSI C and targeted for embedded, RTOS, and resource-constrained environments -
primarily because of its small size, speed, and feature set.

WWW: https://www.wolfssl.com/products/wolfssh/
WWW: https://github.com/wolfSSL/wolfssh
2020-12-13 14:40:35 +00:00

13 lines
590 B
C

--- wolfssh/test.h.orig 2020-08-31 18:13:34 UTC
+++ wolfssh/test.h
@@ -436,8 +436,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';