ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / ctorrent / crash.patch
blob70ef72e6cdeb8168ba347f825d7272362a68bd7b
1 diff -ur ctorrent/btcontent.cpp ctorrent.new/btcontent.cpp
2 --- ctorrent/btcontent.cpp 2004-09-09 00:10:51.000000000 +0100
3 +++ ctorrent.new/btcontent.cpp 2005-02-03 01:32:24.000000000 +0000
4 @@ -226,6 +226,7 @@
5 if( m_btfiles.BuildFromMI(b, flen, saveas) < 0) ERR_RETURN();
7 delete []b;
8 + b = (char *)0;
9 PrintOut();
11 if( arg_flg_exam_only ) return 0;
12 diff -ur ctorrent/iplist.cpp ctorrent.new/iplist.cpp
13 --- ctorrent/iplist.cpp 2004-09-09 00:10:51.000000000 +0100
14 +++ ctorrent.new/iplist.cpp 2005-02-08 13:02:45.000000000 +0000
15 @@ -8,8 +8,8 @@
16 IPLIST *node = ipl_head;
17 for(; ipl_head;){
18 node = ipl_head;
19 - delete ipl_head;
20 ipl_head = node->next;
21 + delete node;
23 count = 0;