Prevent crash when sending empty ASS packet
This commit is contained in:
parent
8a9bb6dc69
commit
8fc75f29a7
@ -705,7 +705,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
||||
|
||||
//AssetURL Packet
|
||||
else if (header == "ASS") {
|
||||
if (f_contents.size() > 1) { // This can never be more than one link.
|
||||
if (f_contents.size() > 1 || f_contents.size() == 0) { // This can never be more than one link.
|
||||
goto end;
|
||||
}
|
||||
QUrl t_asset_url = QUrl::fromPercentEncoding(f_contents.at(0).toUtf8());
|
||||
|
Loading…
Reference in New Issue
Block a user