mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 01:44:20 +08:00
[NETAPI32]
Prevent dereferencing null-pointers. svn path=/trunk/; revision=71299
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user