Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9af7faca
Commit
9af7faca
authored
Mar 24, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ldap: Return an error when the server doesn't respond to the SSL handshake.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54724
parent
c268e5c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tls_w.c
libs/ldap/libldap/tls_w.c
+4
-3
No files found.
libs/ldap/libldap/tls_w.c
View file @
9af7faca
...
@@ -221,8 +221,8 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
...
@@ -221,8 +221,8 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
while
(
expected
>
0
)
{
while
(
expected
>
0
)
{
size
=
tlsw_recv
(
s
->
sbiod
,
(
char
*
)
in_bufs
[
0
].
pvBuffer
+
recv_offset
,
expected
);
size
=
tlsw_recv
(
s
->
sbiod
,
(
char
*
)
in_bufs
[
0
].
pvBuffer
+
recv_offset
,
expected
);
if
(
size
<
0
)
if
(
size
<
=
0
)
break
;
goto
done
;
in_bufs
[
0
].
cbBuffer
+=
size
;
in_bufs
[
0
].
cbBuffer
+=
size
;
recv_offset
+=
size
;
recv_offset
+=
size
;
expected
-=
size
;
expected
-=
size
;
...
@@ -239,6 +239,7 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
...
@@ -239,6 +239,7 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
}
}
}
}
done:
ber_memfree
(
in_bufs
[
0
].
pvBuffer
);
ber_memfree
(
in_bufs
[
0
].
pvBuffer
);
FreeContextBuffer
(
out_bufs
[
0
].
pvBuffer
);
FreeContextBuffer
(
out_bufs
[
0
].
pvBuffer
);
return
status
==
SEC_E_OK
?
0
:
-
1
;
return
status
==
SEC_E_OK
?
0
:
-
1
;
...
@@ -247,7 +248,7 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
...
@@ -247,7 +248,7 @@ tlsw_session_connect( LDAP *ld, tls_session *session, const char *name_in )
static
int
static
int
tlsw_session_upflags
(
Sockbuf
*
sb
,
tls_session
*
session
,
int
rc
)
tlsw_session_upflags
(
Sockbuf
*
sb
,
tls_session
*
session
,
int
rc
)
{
{
return
-
1
;
return
0
;
}
}
static
char
*
static
char
*
...
...
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