Commit 758fb6c9652c33cbcfd2c05f213b412c32051d3e

Authored by Perry Werneck
1 parent 90248b1b

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 90 }
91 91  
92 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 95 errno = EINVAL;
96 96 return 0;
... ...