Commit 0c30c5be authored by Joris Guisson's avatar Joris Guisson
Browse files

Fix crash when parsing DHT packets

BUG: 190107

svn path=/trunk/extragear/network/ktorrent/; revision=966408
parent 60dd0cf7
......@@ -40,6 +40,7 @@ Changes in 3.2.2 :
- Cancel all scan dialogs before exiting, this fixes a crash (191487)
- Config dialog now embeds pages in scroll areas, so that the dialog also is useable on small screens
- Make sure dbus names are valid, this fixes an assert (192007)
- Fix crash when parsing DHT packets (190107)
Changes in 3.2.1 :
- Resort torrents if display name is changed
......
......@@ -192,7 +192,7 @@ namespace bt
bool ok = true;
int len = 0;
len = n.toInt(&ok);
if (!ok)
if (!ok || len < 0)
{
throw Error(i18n("Cannot convert %1 to an int",n));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment