summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/clipboard_file.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-20 13:14:09 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-20 13:14:09 -0700
commita990287c4627ff6b0d3b6a42b06d1f4ce242d918 (patch)
tree865e232ed7d8fd0de40a5f88742dcd5ef7f3481a /sesman/chansrv/clipboard_file.c
parent023c0b5bc1591fad9094d2e440b6315a8ff908d8 (diff)
downloadxrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.tar.gz
xrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.zip
coverity: fixed unchecked return value from library
Diffstat (limited to 'sesman/chansrv/clipboard_file.c')
-rw-r--r--sesman/chansrv/clipboard_file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sesman/chansrv/clipboard_file.c b/sesman/chansrv/clipboard_file.c
index 96f1b0e8..ff95b0a0 100644
--- a/sesman/chansrv/clipboard_file.c
+++ b/sesman/chansrv/clipboard_file.c
@@ -446,7 +446,13 @@ clipboard_send_file_data(int streamId, int lindex,
full_fn);
return 1;
}
- g_file_seek(fd, nPositionLow);
+ if (g_file_seek(fd, nPositionLow) < 0)
+ {
+ log_message(LOG_LEVEL_ERROR, "clipboard_send_file_data: seek error "
+ "in file: %s\n", full_fn);
+ g_file_close(fd);
+ return 1;
+ }
make_stream(s);
init_stream(s, cbRequested + 64);
size = g_file_read(fd, s->data + 12, cbRequested);