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
|
@ -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…
Reference in New Issue