mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[NETAPI32]
Prevent dereferencing null-pointers. svn path=/trunk/; revision=71299
This commit is contained in:
parent
9f70db7773
commit
44a2d2b8b6
2 changed files with 2 additions and 2 deletions
|
@ -1163,7 +1163,7 @@ NetLocalGroupEnum(
|
|||
// }
|
||||
|
||||
done:
|
||||
if (ApiStatus == NERR_Success && EnumContext->Phase != DonePhase)
|
||||
if (ApiStatus == NERR_Success && EnumContext != NULL && EnumContext->Phase != DonePhase)
|
||||
ApiStatus = ERROR_MORE_DATA;
|
||||
|
||||
if (EnumContext != NULL)
|
||||
|
|
|
@ -2554,7 +2554,7 @@ NetUserEnum(LPCWSTR servername,
|
|||
// }
|
||||
|
||||
done:
|
||||
if (ApiStatus == NERR_Success && EnumContext->Index < EnumContext->Count)
|
||||
if (ApiStatus == NERR_Success && EnumContext != NULL && EnumContext->Index < EnumContext->Count)
|
||||
ApiStatus = ERROR_MORE_DATA;
|
||||
|
||||
if (EnumContext != NULL)
|
||||
|
|
Loading…
Reference in a new issue