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
885c480d
Commit
885c480d
authored
Apr 20, 2021
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Avoid a crash with tracing on.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb442678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
option.c
dlls/wldap32/option.c
+7
-9
No files found.
dlls/wldap32/option.c
View file @
885c480d
...
...
@@ -368,9 +368,10 @@ static BOOL query_supported_server_ctrls( LDAP *ld )
{
char
*
attrs
[]
=
{
(
char
*
)
"supportedControl"
,
NULL
};
void
*
res
,
*
entry
;
struct
bervalU
**
ctrls
=
SERVER_CTRLS
(
ld
);
ULONG
ret
;
if
(
SERVER_CTRLS
(
ld
)
)
return
TRUE
;
if
(
ctrls
)
return
TRUE
;
ret
=
map_error
(
ldap_funcs
->
fn_ldap_search_ext_s
(
CTX
(
ld
),
(
char
*
)
""
,
LDAP_SCOPE_BASE
,
(
char
*
)
"(objectClass=*)"
,
attrs
,
FALSE
,
NULL
,
NULL
,
NULL
,
0
,
&
res
)
);
...
...
@@ -380,17 +381,14 @@ static BOOL query_supported_server_ctrls( LDAP *ld )
if
(
entry
)
{
ULONG
count
,
i
;
struct
bervalU
**
ctrls
=
SERVER_CTRLS
(
ld
);
*
(
struct
bervalU
***
)
&
SERVER_CTRLS
(
ld
)
=
ldap_funcs
->
fn_ldap_get_values_len
(
CTX
(
ld
),
entry
,
attrs
[
0
]
);
count
=
ldap_funcs
->
fn_ldap_count_values_len
(
SERVER_CTRLS
(
ld
)
);
for
(
i
=
0
;
i
<
count
;
i
++
)
TRACE
(
"%u: %s
\n
"
,
i
,
debugstr_an
(
ctrls
[
i
]
->
bv_val
,
ctrls
[
i
]
->
bv_len
));
ctrls
=
ldap_funcs
->
fn_ldap_get_values_len
(
CTX
(
ld
),
entry
,
attrs
[
0
]
);
count
=
ldap_funcs
->
fn_ldap_count_values_len
(
ctrls
);
for
(
i
=
0
;
i
<
count
;
i
++
)
TRACE
(
"%u: %s
\n
"
,
i
,
debugstr_an
(
ctrls
[
i
]
->
bv_val
,
ctrls
[
i
]
->
bv_len
));
*
(
struct
bervalU
***
)
&
SERVER_CTRLS
(
ld
)
=
ctrls
;
}
ldap_funcs
->
fn_ldap_msgfree
(
res
);
return
SERVER_CTRLS
(
ld
)
!=
NULL
;
return
ctrls
!=
NULL
;
}
static
BOOL
is_supported_server_ctrls
(
LDAP
*
ld
,
LDAPControlU
**
ctrls
)
...
...
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