Commit b2bd73d8 authored by Joris Guisson's avatar Joris Guisson
Browse files

Backport crash fix from trunk

svn path=/branches/stable/extragear-kde4/network/ktorrent/; revision=966411
parent 57a1ed6f
......@@ -12,6 +12,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