From 758fb6c9652c33cbcfd2c05f213b412c32051d3e Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sun, 3 May 2020 13:10:17 -0300 Subject: [PATCH] Can't connect to an empty host or service name. --- src/core/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/connect.c b/src/core/connect.c index 00e8c2f..1c54d5c 100644 --- a/src/core/connect.c +++ b/src/core/connect.c @@ -90,7 +90,7 @@ } // Do I have a defined host? - if(!(hSession->host.current && hSession->host.srvc)) + if(!(hSession->host.current && hSession->host.srvc && *hSession->host.current && *hSession->host.srvc)) { errno = EINVAL; return 0; -- libgit2 0.21.2