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
65323a6b
Commit
65323a6b
authored
Mar 15, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32: Handle null LDAPMessage in ldap_count_entries.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54690
parent
57828356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
misc.c
dlls/wldap32/misc.c
+1
-0
parse.c
dlls/wldap32/tests/parse.c
+7
-1
No files found.
dlls/wldap32/misc.c
View file @
65323a6b
...
...
@@ -98,6 +98,7 @@ ULONG CDECL WLDAP32_ldap_count_entries( LDAP *ld, WLDAP32_LDAPMessage *res )
{
TRACE
(
"(%p, %p)
\n
"
,
ld
,
res
);
if
(
!
res
)
return
0
;
if
(
!
ld
)
return
~
0u
;
return
ldap_count_entries
(
CTX
(
ld
),
MSG
(
res
)
);
}
...
...
dlls/wldap32/tests/parse.c
View file @
65323a6b
...
...
@@ -252,7 +252,13 @@ static void test_ldap_paged_search(void)
ok
(
res
!=
NULL
,
"expected res != NULL
\n
"
);
ok
(
count
==
0
,
"got %lu
\n
"
,
count
);
count
=
ldap_count_entries
(
ld
,
res
);
count
=
ldap_count_entries
(
NULL
,
NULL
);
ok
(
count
==
0
,
"got %lu
\n
"
,
count
);
count
=
ldap_count_entries
(
ld
,
NULL
);
ok
(
count
==
0
,
"got %lu
\n
"
,
count
);
count
=
ldap_count_entries
(
NULL
,
res
);
todo_wine
ok
(
count
==
1
,
"got %lu
\n
"
,
count
);
count
=
ldap_count_entries
(
ld
,
res
);
ok
(
count
==
1
,
"got %lu
\n
"
,
count
);
entry
=
ldap_first_entry
(
ld
,
res
);
...
...
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