Merge pull request #21305 from Kethen/adhoc_fixes

add missing null check during actOnDeathPacket
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-02-26 13:38:48 +01:00
commit 58a7be7b0f
1 file changed
+1 -1
+1 -1
View File
@@ -1083,7 +1083,7 @@ void actOnDeathPacket(SceNetAdhocMatchingContext * context, SceNetEtherAddr * se
// Find Peer
SceNetAdhocMatchingMemberInternal * deadkid = findPeer(context, &mac);
if (deadkid->state != PSP_ADHOC_MATCHING_PEER_CHILD) {
if (deadkid == NULL || deadkid->state != PSP_ADHOC_MATCHING_PEER_CHILD) {
// Invalid Sibling
return;
}