8
0
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:
dimitr 2015-07-26 07:50:58 +00:00
parent e1f3ac4499
commit 5c96bd5401

View File

@ -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);