mirror of https://github.com/stella-emu/stella.git
Fix segfault on invalid PlusROM URL.
This commit is contained in:
parent
b0ed0f6568
commit
bb479e5010
|
@ -99,6 +99,22 @@ class PlusROMRequest {
|
||||||
"application/octet-stream"
|
"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) {
|
if (response->status != 200) {
|
||||||
ostringstream ss;
|
ostringstream ss;
|
||||||
ss
|
ss
|
||||||
|
|
Loading…
Reference in New Issue