From 77188865e24bd750f76785d6bbe2f1851c7466a8 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Tue, 13 Dec 2016 12:19:09 +0100 Subject: Fix reversed logic in acceptHost setting --- nxcomp/Loop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nxcomp') 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) -- cgit v1.2.3