commit 07a539d5d1a308b329311a8fa0f2f088e936c374
parent 7e021a59b14b0a11cd217202ab639a3e84a8b03f
Author: hhvn <dev@hhvn.uk>
Date: Sat, 12 Mar 2022 18:43:54 +0000
Fix segfault on failed getaddrinfo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/serv.c b/src/serv.c
@@ -195,7 +195,7 @@ serv_connect(struct Server *server) {
struct tls_config *tls_conf;
struct Support *s, *prev;
struct addrinfo hints;
- struct addrinfo *ai;
+ struct addrinfo *ai = NULL;
int fd, ret, serrno;
if (!server)