summaryrefslogtreecommitdiff
path: root/packages/ctorrent/files/crash.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/ctorrent/files/crash.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/ctorrent/files/crash.patch')
-rw-r--r--packages/ctorrent/files/crash.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/ctorrent/files/crash.patch b/packages/ctorrent/files/crash.patch
index e69de29bb2..70ef72e6cd 100644
--- a/packages/ctorrent/files/crash.patch
+++ b/packages/ctorrent/files/crash.patch
@@ -0,0 +1,24 @@
+diff -ur ctorrent/btcontent.cpp ctorrent.new/btcontent.cpp
+--- ctorrent/btcontent.cpp 2004-09-09 00:10:51.000000000 +0100
++++ ctorrent.new/btcontent.cpp 2005-02-03 01:32:24.000000000 +0000
+@@ -226,6 +226,7 @@
+ if( m_btfiles.BuildFromMI(b, flen, saveas) < 0) ERR_RETURN();
+
+ delete []b;
++ b = (char *)0;
+ PrintOut();
+
+ if( arg_flg_exam_only ) return 0;
+diff -ur ctorrent/iplist.cpp ctorrent.new/iplist.cpp
+--- ctorrent/iplist.cpp 2004-09-09 00:10:51.000000000 +0100
++++ ctorrent.new/iplist.cpp 2005-02-08 13:02:45.000000000 +0000
+@@ -8,8 +8,8 @@
+ IPLIST *node = ipl_head;
+ for(; ipl_head;){
+ node = ipl_head;
+- delete ipl_head;
+ ipl_head = node->next;
++ delete node;
+ }
+ count = 0;
+ }