mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix a possible NULL dereference in load_savestate
In the unlikely situation that serial_info wasn't provided and the delta frame wasn't ready (possibly an impossible situation) it previously would have segfaulted. This fixes that.
This commit is contained in:
parent
a5d4032d01
commit
8c08a5399d
1 changed files with 5 additions and 0 deletions
|
@ -1575,6 +1575,11 @@ void netplay_load_savestate(netplay_t *netplay,
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME: This is a critical failure! */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* We need to ignore any intervening data from the other side,
|
||||
|
|
Loading…
Add table
Reference in a new issue