[NETAPI32]

Prevent dereferencing null-pointers.

svn path=/trunk/; revision=71299
This commit is contained in:
Eric Kohl 2016-05-09 10:26:55 +00:00
parent 9f70db7773
commit 44a2d2b8b6
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)