aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorVadim Troshchinskiyddd <vtroshchinskiy@qindel.com>2016-10-07 13:12:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-10-07 22:05:03 +0200
commitf55852c2ea6f4217eb3527071be8278d993a912f (patch)
tree045170b941e70d06d47e254dd3c8a346f77c4d1a /nxcomp
parent85f5fdfd28dd7ba024586a62cc7cbba2d1b9e027 (diff)
downloadnx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.tar.gz
nx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.tar.bz2
nx-libs-f55852c2ea6f4217eb3527071be8278d993a912f.zip
Fix nxproxy hostname parsing.
Fixes ArcticaProject/nx-libs#207 Closes ArcticaProject/nx-libs#216
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/Loop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index a690042d2..7e77bc2a9 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -9367,10 +9367,10 @@ int ParseCommandLineOptions(int argc, const char **argv)
// command line at the connecting side.
//
- char *cHost;
- long cPort;
+ char cHost[DEFAULT_STRING_LENGTH] = { '\0' };
+ long cPort = 0;
- if (connectSocket.getTCPHostAndPort(&cHost, &cPort) && (ParseHostOption(nextArg, cHost, cPort) > 0))
+ if (ParseHostOption(nextArg, cHost, cPort) > 0)
{
//
// Assume port is at a proxied display offset.