diff options
author | jsorg71 <jsorg71> | 2007-01-15 09:08:03 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-01-15 09:08:03 +0000 |
commit | 5aad0fc84a255746cebd43b68acf65252d9c15f8 (patch) | |
tree | 8788822dbcacab2d6a024679b3206cdcd9426240 /libxrdp/xrdp_rdp.c | |
parent | e14366665be9c483088709985e405d7fb50d820e (diff) | |
download | xrdp-proprietary-5aad0fc84a255746cebd43b68acf65252d9c15f8.tar.gz xrdp-proprietary-5aad0fc84a255746cebd43b68acf65252d9c15f8.zip |
added some debug info
Diffstat (limited to 'libxrdp/xrdp_rdp.c')
-rw-r--r-- | libxrdp/xrdp_rdp.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index eaaa52be..27c61dc4 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -116,6 +116,7 @@ xrdp_rdp_create(struct xrdp_session* session, int sck) { struct xrdp_rdp* self; + DEBUG(("in xrdp_rdp_create")); self = (struct xrdp_rdp*)g_malloc(sizeof(struct xrdp_rdp), 1); self->session = session; self->share_id = 66538; @@ -131,6 +132,7 @@ xrdp_rdp_create(struct xrdp_session* session, int sck) self->client_info.cache2_size = 1024; self->client_info.cache3_entries = 262; self->client_info.cache3_size = 4096; + DEBUG(("out xrdp_rdp_create")); return self; } @@ -991,7 +993,12 @@ xrdp_rdp_process_data(struct xrdp_rdp* self, struct stream* s) int APP_CC xrdp_rdp_disconnect(struct xrdp_rdp* self) { - return xrdp_sec_disconnect(self->sec_layer); + int rv; + + DEBUG(("in xrdp_rdp_disconnect")); + rv = xrdp_sec_disconnect(self->sec_layer); + DEBUG(("out xrdp_rdp_disconnect")); + return rv; } /*****************************************************************************/ @@ -1000,19 +1007,23 @@ xrdp_rdp_send_deactive(struct xrdp_rdp* self) { struct stream* s; + DEBUG(("in xrdp_rdp_send_deactive")); make_stream(s); init_stream(s, 8192); if (xrdp_rdp_init(self, s) != 0) { free_stream(s); + DEBUG(("out xrdp_rdp_send_deactive error")); return 1; } s_mark_end(s); if (xrdp_rdp_send(self, s, RDP_PDU_DEACTIVATE) != 0) { free_stream(s); + DEBUG(("out xrdp_rdp_send_deactive error")); return 1; } free_stream(s); + DEBUG(("out xrdp_rdp_send_deactive")); return 0; } |