summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-02-16 14:39:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-02-16 14:39:29 +0100
commit0915425a0d3806acee67389d077703ab5eab3806 (patch)
tree693cc002e0a2d7aba296c57729679adbabbd2570
parent40819648d406958bbfa0eae167848bb5e02edd23 (diff)
downloadtdebase-0915425a0d3806acee67389d077703ab5eab3806.tar.gz
tdebase-0915425a0d3806acee67389d077703ab5eab3806.zip
Fix processing of local names in KWinInternal::isLocalMachine
-rw-r--r--twin/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/twin/utils.cpp b/twin/utils.cpp
index 47c09b0e5..ddd5a3387 100644
--- a/twin/utils.cpp
+++ b/twin/utils.cpp
@@ -339,8 +339,8 @@ bool isLocalMachine( const TQCString& host )
return false;
for(addr = res; !is_local && addr; addr = addr->ai_next)
{
- if( res->ai_canonname &&
- host == TQCString( res->ai_canonname ))
+ if( addr->ai_canonname &&
+ host == TQCString( addr->ai_canonname ))
is_local = true;
}
freeaddrinfo(res);