diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-20 13:14:09 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-20 13:14:09 -0700 |
commit | a990287c4627ff6b0d3b6a42b06d1f4ce242d918 (patch) | |
tree | 865e232ed7d8fd0de40a5f88742dcd5ef7f3481a /xrdpapi | |
parent | 023c0b5bc1591fad9094d2e440b6315a8ff908d8 (diff) | |
download | xrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.tar.gz xrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.zip |
coverity: fixed unchecked return value from library
Diffstat (limited to 'xrdpapi')
-rw-r--r-- | xrdpapi/xrdpapi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c index 4cf8db71..23630804 100644 --- a/xrdpapi/xrdpapi.c +++ b/xrdpapi/xrdpapi.c @@ -129,7 +129,10 @@ WTSVirtualChannelOpenEx(unsigned int SessionId, const char *pVirtualName, /* set non blocking */ llong = fcntl(wts->fd, F_GETFL); llong = llong | O_NONBLOCK; - fcntl(wts->fd, F_SETFL, llong); + if (fcntl(wts->fd, F_SETFL, llong) < 0) + { + LLOGLN(10, ("WTSVirtualChannelOpenEx: set non-block mode failed")); + } /* connect to chansrv session */ memset(&s, 0, sizeof(struct sockaddr_un)); |