Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c6097caf
Commit
c6097caf
authored
May 17, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
May 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Deal with reading over the end in NETCON_recv.
parent
a298415b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
netconnection.c
dlls/wininet/netconnection.c
+8
-0
No files found.
dlls/wininet/netconnection.c
View file @
c6097caf
...
...
@@ -134,6 +134,7 @@ MAKE_FUNCPTR(SSL_shutdown);
MAKE_FUNCPTR
(
SSL_write
);
MAKE_FUNCPTR
(
SSL_read
);
MAKE_FUNCPTR
(
SSL_pending
);
MAKE_FUNCPTR
(
SSL_get_error
);
MAKE_FUNCPTR
(
SSL_get_ex_new_index
);
MAKE_FUNCPTR
(
SSL_get_ex_data
);
MAKE_FUNCPTR
(
SSL_set_ex_data
);
...
...
@@ -392,6 +393,7 @@ DWORD NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
DYNSSL
(
SSL_write
);
DYNSSL
(
SSL_read
);
DYNSSL
(
SSL_pending
);
DYNSSL
(
SSL_get_error
);
DYNSSL
(
SSL_get_ex_new_index
);
DYNSSL
(
SSL_get_ex_data
);
DYNSSL
(
SSL_set_ex_data
);
...
...
@@ -772,6 +774,12 @@ DWORD NETCON_recv(WININET_NETCONNECTION *connection, void *buf, size_t len, int
{
#ifdef SONAME_LIBSSL
*
recvd
=
pSSL_read
(
connection
->
ssl_s
,
buf
,
len
);
/* Check if EOF was received */
if
(
!*
recvd
&&
(
pSSL_get_error
(
connection
->
ssl_s
,
*
recvd
)
==
SSL_ERROR_ZERO_RETURN
||
pSSL_get_error
(
connection
->
ssl_s
,
*
recvd
)
==
SSL_ERROR_SYSCALL
))
return
ERROR_SUCCESS
;
return
*
recvd
>
0
?
ERROR_SUCCESS
:
ERROR_INTERNET_CONNECTION_ABORTED
;
#else
return
ERROR_NOT_SUPPORTED
;
...
...
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