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:
Gregor Richards 2016-12-15 16:19:54 -05:00
parent a5d4032d01
commit 8c08a5399d

View file

@ -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,