Commit 758fb6c9652c33cbcfd2c05f213b412c32051d3e
1 parent
90248b1b
Exists in
master
and in
3 other branches
Can't connect to an empty host or service name.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/core/connect.c
@@ -90,7 +90,7 @@ | @@ -90,7 +90,7 @@ | ||
90 | } | 90 | } |
91 | 91 | ||
92 | // Do I have a defined host? | 92 | // Do I have a defined host? |
93 | - if(!(hSession->host.current && hSession->host.srvc)) | 93 | + if(!(hSession->host.current && hSession->host.srvc && *hSession->host.current && *hSession->host.srvc)) |
94 | { | 94 | { |
95 | errno = EINVAL; | 95 | errno = EINVAL; |
96 | return 0; | 96 | return 0; |