Fix possible crash issue

This commit is contained in:
ANR2ME committed 2021-09-23 12:22:57 +07:00
1 parent 61d73e46e6
commit 15d3e69c4c
1 file changed
+3
+3
View File
@@ -667,6 +667,9 @@ s32_le countChildren(SceNetAdhocMatchingContext * context, const bool excludeTim
*/
SceNetAdhocMatchingMemberInternal * findPeer(SceNetAdhocMatchingContext * context, SceNetEtherAddr * mac)
{
if (mac == NULL)
return NULL;
// Iterate Peer List for Matching Target
SceNetAdhocMatchingMemberInternal * peer = context->peerlist;
for (; peer != NULL; peer = peer->next)