mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 20:24:01 +01:00
Merge pull request #21305 from Kethen/adhoc_fixes
add missing null check during actOnDeathPacket
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user