summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/chansrv.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-19 13:06:25 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-19 13:06:25 -0700
commit73578bc612b63e451a9203f7187f77152d069350 (patch)
tree6259b3b95a833e1ad7de288468b24d50e4fc6807 /sesman/chansrv/chansrv.c
parent3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3 (diff)
downloadxrdp-proprietary-73578bc612b63e451a9203f7187f77152d069350.tar.gz
xrdp-proprietary-73578bc612b63e451a9203f7187f77152d069350.zip
coverity: fixed unchecked return value
Diffstat (limited to 'sesman/chansrv/chansrv.c')
-rw-r--r--sesman/chansrv/chansrv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index a89957ba..6aa5c8e8 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -812,7 +812,8 @@ my_api_trans_data_in(struct trans *trans)
in_uint8s(s, 12);
in_uint32_le(s, bytes_read);
init_stream(s, bytes_read);
- trans_force_read(trans, bytes_read);
+ if (trans_force_read(trans, bytes_read))
+ log_message(LOG_LEVEL_ERROR, "chansrv.c: error reading from transport");
}
else if (g_tcp_select(trans->sck, 0) & 1)
{