summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-05-26 17:24:04 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-05-26 17:24:04 -0700
commitbde5dd66713cec177846627bf026d8bcddbb41a8 (patch)
tree3b914749067f0b70a792a2e48ceda737c2f2db34 /libxrdp
parentd08e27e82463c0f998c82ff62cd6dda81822c68b (diff)
downloadxrdp-proprietary-bde5dd66713cec177846627bf026d8bcddbb41a8.tar.gz
xrdp-proprietary-bde5dd66713cec177846627bf026d8bcddbb41a8.zip
added g_close_wait_obj and size parameter to g_write_ip_address
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_rdp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index bdbeed48..f25ec274 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -136,6 +136,7 @@ struct xrdp_rdp* APP_CC
xrdp_rdp_create(struct xrdp_session* session, struct trans* trans)
{
struct xrdp_rdp* self = (struct xrdp_rdp *)NULL;
+ int bytes;
DEBUG(("in xrdp_rdp_create"));
self = (struct xrdp_rdp*)g_malloc(sizeof(struct xrdp_rdp), 1);
@@ -153,7 +154,9 @@ xrdp_rdp_create(struct xrdp_session* session, struct trans* trans)
self->client_info.cache2_size = 1024;
self->client_info.cache3_entries = 262;
self->client_info.cache3_size = 4096;
- g_write_ip_address(trans->sck, self->client_info.client_ip); /* load client ip info */
+ /* load client ip info */
+ bytes = sizeof(self->client_info.client_ip) - 1;
+ g_write_ip_address(trans->sck, self->client_info.client_ip, bytes);
#if defined(XRDP_FREERDP1)
self->mppc_enc = mppc_enc_new(PROTO_RDP_50);
#endif