diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-02-23 18:03:51 -0800 |
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-02-23 18:03:51 -0800 |
| commit | 1f51f62df92fd8edce1a8c1b533150d2b058678a (patch) | |
| tree | 70fb46826f5e32e1496db8713522df124f85be88 /libxrdp/xrdp_mcs.c | |
| parent | 76a090196406fbd8a5a3bda1d90fd6e9699b2799 (diff) | |
| parent | 2921400083fc4fe873c483c99326daec398c68fe (diff) | |
| download | xrdp-proprietary-1f51f62df92fd8edce1a8c1b533150d2b058678a.tar.gz xrdp-proprietary-1f51f62df92fd8edce1a8c1b533150d2b058678a.zip | |
Merge branch 'devel' of github.com:/neutrinolabs/xrdp into devel
Diffstat (limited to 'libxrdp/xrdp_mcs.c')
| -rw-r--r-- | libxrdp/xrdp_mcs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libxrdp/xrdp_mcs.c b/libxrdp/xrdp_mcs.c index c145158c..02b8ee69 100644 --- a/libxrdp/xrdp_mcs.c +++ b/libxrdp/xrdp_mcs.c @@ -1,7 +1,7 @@ /** * xrdp: A Remote Desktop Protocol server. * - * Copyright (C) Jay Sorg 2004-2013 + * Copyright (C) Jay Sorg 2004-2014 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -946,16 +946,17 @@ xrdp_mcs_send(struct xrdp_mcs *self, struct stream *s, int chan) * Internal help function to close the socket * @param self */ -void close_rdp_socket(struct xrdp_mcs *self) +void APP_CC +close_rdp_socket(struct xrdp_mcs *self) { - if(self->iso_layer->tcp_layer) + if (self->iso_layer->tcp_layer != 0) { - if(self->iso_layer->tcp_layer->trans) + if (self->iso_layer->tcp_layer->trans != 0) { g_tcp_close(self->iso_layer->tcp_layer->trans->sck); self->iso_layer->tcp_layer->trans->sck = 0 ; g_writeln("xrdp_mcs_disconnect - socket closed"); - return ; + return; } } g_writeln("Failed to close socket"); |
