small fix for initialization of host address in case not actual address could be obtained

This commit is contained in:
Volker Fischer 2012-07-09 12:49:47 +00:00
parent d0b017df54
commit b625a77521

View File

@ -425,6 +425,9 @@ bool LlconNetwUtil::ParseNetworkAddress ( QString strAddress,
QHostAddress InetAddr;
quint16 iNetPort = LLCON_DEFAULT_PORT_NUMBER;
// init requested host address with invalid address first
HostAddress = CHostAddress();
// parse input address for the type [IP address]:[port number]
QString strPort = strAddress.section ( ":", 1, 1 );
if ( !strPort.isEmpty() )