aboutsummaryrefslogtreecommitdiff
path: root/net/nepenthes/files
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-08-04 14:04:14 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-08-04 14:04:14 +0000
commit4ee277e6b30ff84f9a39f930e70b6fcc3a89c7d9 (patch)
tree0acbe7577330abbc7d91c27c44dc6c9fd49c536c /net/nepenthes/files
parent340cd4aa318585ae4df1a5d95a0dc520daea833b (diff)
downloadports-4ee277e6b30ff84f9a39f930e70b6fcc3a89c7d9.tar.gz
ports-4ee277e6b30ff84f9a39f930e70b6fcc3a89c7d9.zip
Notes
Diffstat (limited to 'net/nepenthes/files')
-rw-r--r--net/nepenthes/files/patch-modules-vuln-bagle-BagleDialogue.cpp27
-rw-r--r--net/nepenthes/files/patch-modules-vuln-mydoom-MydoomDialogue.cpp27
2 files changed, 54 insertions, 0 deletions
diff --git a/net/nepenthes/files/patch-modules-vuln-bagle-BagleDialogue.cpp b/net/nepenthes/files/patch-modules-vuln-bagle-BagleDialogue.cpp
new file mode 100644
index 000000000000..bde493ded484
--- /dev/null
+++ b/net/nepenthes/files/patch-modules-vuln-bagle-BagleDialogue.cpp
@@ -0,0 +1,27 @@
+--- modules/vuln-bagle/BagleDialogue.cpp.old Sun May 7 16:07:25 2006
++++ modules/vuln-bagle/BagleDialogue.cpp Sun May 7 16:08:14 2006
+@@ -158,6 +158,7 @@
+ m_State = BAGLE_BINARY;
+ m_Download = new Download(m_Socket->getRemoteHost(),"bagle://",m_Socket->getRemoteHost(),"bagle://foo/bar");
+ m_Download->getDownloadBuffer()->addData(msg->getMsg()+4,msg->getSize()-4);
++ return CL_ASSIGN_AND_DONE;
+ }
+ }
+ break;
+@@ -165,6 +166,7 @@
+ case BAGLE_BINARY:
+ // FIXME m_MaxFileSize
+ m_Download->getDownloadBuffer()->addData(msg->getMsg(),msg->getSize());
++ return CL_ASSIGN_AND_DONE;
+ break;
+
+ }
+@@ -232,8 +234,6 @@
+ if ( m_Download->getDownloadBuffer()->getSize() == m_FileSize )
+ {
+ g_Nepenthes->getSubmitMgr()->addSubmission(m_Download);
+- // destructor will delete it
+- return CL_ASSIGN_AND_DONE;
+ }
+ }
+ return CL_DROP;
diff --git a/net/nepenthes/files/patch-modules-vuln-mydoom-MydoomDialogue.cpp b/net/nepenthes/files/patch-modules-vuln-mydoom-MydoomDialogue.cpp
new file mode 100644
index 000000000000..cffca6e73371
--- /dev/null
+++ b/net/nepenthes/files/patch-modules-vuln-mydoom-MydoomDialogue.cpp
@@ -0,0 +1,27 @@
+--- modules/vuln-mydoom/MydoomDialogue.cpp.old Sun May 7 16:03:52 2006
++++ modules/vuln-mydoom/MydoomDialogue.cpp Sun May 7 16:05:33 2006
+@@ -120,7 +120,7 @@
+ m_Download = new Download(msg->getRemoteHost(),"mydoom://foo/bar",msg->getRemoteHost(),"some triggerline");
+ m_Download->getDownloadBuffer()->addData((char *)m_Buffer->getData(),m_Buffer->getSize());
+ m_Buffer->clear();
+- return CL_ASSIGN;
++ return CL_ASSIGN_AND_DONE;
+ }
+ }
+ if (m_Buffer->getSize() > 128 )
+@@ -130,6 +130,7 @@
+ case MYDOOM_FILETRANSFERR:
+ {
+ m_Download->getDownloadBuffer()->addData((char *)msg->getMsg(),msg->getSize());
++ return CL_ASSIGN_AND_DONE;
+ }
+ break;
+
+@@ -196,7 +197,6 @@
+ if (m_Download != NULL)
+ {
+ g_Nepenthes->getSubmitMgr()->addSubmission(m_Download);
+- return CL_ASSIGN_AND_DONE;
+ }
+ return CL_DROP;
+ }