diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:23 -0700 |
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:23 -0700 |
| commit | 27055d5762d23ae3996e7e41ef45ef6454fa2d65 (patch) | |
| tree | b45025733988961e08bde0c7e495f73c939a9937 /rdp/rdp_rdp.c | |
| parent | fde7be5151f7db096610cb59ca964e22e6af79fb (diff) | |
| download | xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.tar.gz xrdp-proprietary-27055d5762d23ae3996e7e41ef45ef6454fa2d65.zip | |
coverity: improper use of negative value
Diffstat (limited to 'rdp/rdp_rdp.c')
| -rw-r--r-- | rdp/rdp_rdp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rdp/rdp_rdp.c b/rdp/rdp_rdp.c index 70155c60..9ce63664 100644 --- a/rdp/rdp_rdp.c +++ b/rdp/rdp_rdp.c @@ -1170,6 +1170,9 @@ rdp_rec_check_file(struct rdp_rdp *self) } self->rec_fd = g_file_open(file_name); + if (self->rec_fd < 0) + return 1; + make_stream(s); init_stream(s, 8192); out_uint8a(s, "XRDPREC1", 8); |
