mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Fixed hostless INET/WNET connections on Linux.
This commit is contained in:
parent
e1f3ac4499
commit
5c96bd5401
@ -344,7 +344,7 @@ bool ISC_analyze_protocol(const char* protocol, tstring& expanded_name, tstring&
|
||||
if (separator) // this implies node name is expected!
|
||||
{
|
||||
size p = expanded_name.find_first_of('/');
|
||||
if (p != npos)
|
||||
if (p != 0 && p != npos)
|
||||
{
|
||||
node_name = expanded_name.substr(0, p);
|
||||
expanded_name.erase(0, node_name.length() + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user