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
0c1dcfd3
Commit
0c1dcfd3
authored
Mar 15, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Mar 16, 2023
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Handle null LDAPMessage in ldap_parse_result.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54690
parent
65323a6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
parse.c
dlls/wldap32/parse.c
+2
-0
parse.c
dlls/wldap32/tests/parse.c
+6
-0
No files found.
dlls/wldap32/parse.c
View file @
0c1dcfd3
...
...
@@ -148,6 +148,7 @@ ULONG CDECL ldap_parse_resultA( LDAP *ld, WLDAP32_LDAPMessage *result, ULONG *re
free
);
if
(
!
ld
)
return
WLDAP32_LDAP_PARAM_ERROR
;
if
(
!
result
)
return
WLDAP32_LDAP_NO_RESULTS_RETURNED
;
ret
=
ldap_parse_resultW
(
ld
,
result
,
retcode
,
&
matchedW
,
&
errorW
,
&
referralsW
,
&
serverctrlsW
,
free
);
...
...
@@ -177,6 +178,7 @@ ULONG CDECL ldap_parse_resultW( LDAP *ld, WLDAP32_LDAPMessage *result, ULONG *re
free
);
if
(
!
ld
)
return
WLDAP32_LDAP_PARAM_ERROR
;
if
(
!
result
)
return
WLDAP32_LDAP_NO_RESULTS_RETURNED
;
ret
=
map_error
(
ldap_parse_result
(
CTX
(
ld
),
MSG
(
result
),
(
int
*
)
retcode
,
&
matchedU
,
&
errorU
,
&
referralsU
,
&
serverctrlsU
,
free
)
);
...
...
dlls/wldap32/tests/parse.c
View file @
0c1dcfd3
...
...
@@ -68,6 +68,12 @@ static void test_ldap_parse_sort_control( LDAP *ld )
ok
(
!
ret
,
"ldap_search_ext_sA failed %#lx
\n
"
,
ret
);
ok
(
res
!=
NULL
,
"expected res != NULL
\n
"
);
ret
=
ldap_parse_resultA
(
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
server_ctrls
,
0
);
ok
(
ret
==
LDAP_PARAM_ERROR
,
"ldap_parse_resultA should fail, got %#lx
\n
"
,
ret
);
ret
=
ldap_parse_resultA
(
NULL
,
res
,
NULL
,
NULL
,
NULL
,
NULL
,
&
server_ctrls
,
0
);
ok
(
ret
==
LDAP_PARAM_ERROR
,
"ldap_parse_resultA should fail, got %#lx
\n
"
,
ret
);
ret
=
ldap_parse_resultA
(
ld
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
server_ctrls
,
0
);
ok
(
ret
==
LDAP_NO_RESULTS_RETURNED
,
"ldap_parse_resultA should fail, got %#lx
\n
"
,
ret
);
result
=
~
0u
;
ret
=
ldap_parse_resultA
(
ld
,
res
,
&
result
,
NULL
,
NULL
,
NULL
,
&
server_ctrls
,
1
);
ok
(
!
ret
,
"ldap_parse_resultA failed %#lx
\n
"
,
ret
);
...
...
Vitaly Lipatov
@lav
mentioned in commit
68f91a82
·
Feb 25, 2024
mentioned in commit
68f91a82
mentioned in commit 68f91a82136377f33ba3bde473e8c87d912b8306
Toggle commit list
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