mirror of https://github.com/stella-emu/stella.git
Fix segfault on invalid PlusROM URL.
This commit is contained in:
parent
b5f5c5068a
commit
1f94a79b1c
|
@ -99,6 +99,22 @@ class PlusROMRequest {
|
|||
"application/octet-stream"
|
||||
);
|
||||
|
||||
if (!response) {
|
||||
ostringstream ss;
|
||||
ss
|
||||
<< "PlusCart: request to "
|
||||
<< myDestination.host
|
||||
<< "/"
|
||||
<< myDestination.path
|
||||
<< ": failed --- bad URL";
|
||||
|
||||
Logger::error(ss.str());
|
||||
|
||||
myState = State::failed;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (response->status != 200) {
|
||||
ostringstream ss;
|
||||
ss
|
||||
|
|
Loading…
Reference in New Issue