Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
81289eb6
Commit
81289eb6
authored
Apr 26, 2012
by
Christian Beier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly check return value.
This also fixes a compiler warning.
parent
cdf8a18c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
rfbserver.c
libvncserver/rfbserver.c
+4
-1
No files found.
libvncserver/rfbserver.c
View file @
81289eb6
...
@@ -1721,7 +1721,10 @@ rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t con
...
@@ -1721,7 +1721,10 @@ rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t con
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBZ
/* compressed packet */
/* compressed packet */
nRet
=
uncompress
(
compBuff
,
&
nRawBytes
,(
const
unsigned
char
*
)
buffer
,
length
);
nRet
=
uncompress
(
compBuff
,
&
nRawBytes
,(
const
unsigned
char
*
)
buffer
,
length
);
if
(
nRet
==
Z_OK
)
retval
=
write
(
cl
->
fileTransfer
.
fd
,
(
char
*
)
compBuff
,
nRawBytes
);
retval
=
write
(
cl
->
fileTransfer
.
fd
,
(
char
*
)
compBuff
,
nRawBytes
);
else
retval
=
-
1
;
#else
#else
/* Write the file out as received... */
/* Write the file out as received... */
retval
=
write
(
cl
->
fileTransfer
.
fd
,
buffer
,
length
);
retval
=
write
(
cl
->
fileTransfer
.
fd
,
buffer
,
length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment