aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Loop.cpp
diff options
context:
space:
mode:
authorVadim Troshchinskiy <vtroshchinskiy@qindel.com>2016-12-13 12:19:09 +0100
committerVadim Troshchinskiy <vtroshchinskiy@qindel.com>2016-12-13 12:19:09 +0100
commit77188865e24bd750f76785d6bbe2f1851c7466a8 (patch)
treee6b9d34c37ef98f7fd335f05c0b717e61bf5853e /nxcomp/Loop.cpp
parent2b8f59261dd6880469c8cfcf64cafcbca55b9e2d (diff)
downloadnx-libs-77188865e24bd750f76785d6bbe2f1851c7466a8.tar.gz
nx-libs-77188865e24bd750f76785d6bbe2f1851c7466a8.tar.bz2
nx-libs-77188865e24bd750f76785d6bbe2f1851c7466a8.zip
Fix reversed logic in acceptHost setting
Diffstat (limited to 'nxcomp/Loop.cpp')
-rw-r--r--nxcomp/Loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 09ba6f952..c566aa2d1 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6685,11 +6685,11 @@ int WaitForRemote(ChannelEndPoint &socketAddress)
goto WaitForRemoteError;
}
- strcpy(hostLabel, "any host");
+ snprintf(hostLabel, sizeof(hostLabel), "'%s'", acceptHost);
}
else
{
- snprintf(hostLabel, sizeof(hostLabel), "'%s'", acceptHost);
+ strcpy(hostLabel, "any host");
}
if (loopbackBind)