summaryrefslogtreecommitdiffstats
path: root/rdp/rdp_tcp.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <lk@Ubuntu-12.04-32bit>2014-10-11 14:49:46 -0700
committerLaxmikant Rashinkar <lk@Ubuntu-12.04-32bit>2014-10-11 14:49:46 -0700
commit8c316b46b8d6b1cb3cf32165daf817030aac1a47 (patch)
tree089c5741cb2a914501e5ab28898a5c71c4c4103b /rdp/rdp_tcp.c
parent5b6b74577fda4bbcd0a02a585d783c59d68953da (diff)
parentbc7a6b9bc66afe4adf7c232c94e41694319d4155 (diff)
downloadxrdp-proprietary-8c316b46b8d6b1cb3cf32165daf817030aac1a47.tar.gz
xrdp-proprietary-8c316b46b8d6b1cb3cf32165daf817030aac1a47.zip
Merge branch 'devel'
Diffstat (limited to 'rdp/rdp_tcp.c')
-rw-r--r--rdp/rdp_tcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdp/rdp_tcp.c b/rdp/rdp_tcp.c
index a919259e..f0a76d7d 100644
--- a/rdp/rdp_tcp.c
+++ b/rdp/rdp_tcp.c
@@ -157,7 +157,10 @@ int APP_CC
rdp_tcp_connect(struct rdp_tcp *self, char *ip, char *port)
{
DEBUG((" in rdp_tcp_connect ip %s port %s", ip, port));
+
self->sck = g_tcp_socket();
+ if (self->sck < 0)
+ return 1;
if (g_tcp_connect(self->sck, ip, port) == 0)
{