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