summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
Diffstat (limited to 'twin')
-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);