r314 - /apt-transport-debtorrent/trunk/debtorrent.cc
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Mon Nov 5 02:35:53 UTC 2007
Author: camrdale-guest
Date: Mon Nov 5 02:35:53 2007
New Revision: 314
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=314
Log:
Fix a possible bug in dealing with unrequested files.
Modified:
apt-transport-debtorrent/trunk/debtorrent.cc
Modified: apt-transport-debtorrent/trunk/debtorrent.cc
URL: http://svn.debian.org/wsvn/debtorrent/apt-transport-debtorrent/trunk/debtorrent.cc?rev=314&op=diff
==============================================================================
--- apt-transport-debtorrent/trunk/debtorrent.cc (original)
+++ apt-transport-debtorrent/trunk/debtorrent.cc Mon Nov 5 02:35:53 2007
@@ -1288,10 +1288,14 @@
else
{
// The result could not be found in the requests
+ Fail("Data returned for an unrequested file");
+
+ // Send to content to dev/null
+ File = new FileFd("/dev/null",FileFd::WriteExists);
+ Server->RunData();
delete File;
File = 0;
- Fail("Data returned for an unrequested file");
RotateDNS();
Server->Close();
}
More information about the Debtorrent-commits
mailing list