openbsd-ports/www/dansguardian/patches/patch-src_contentscanners_clamav_cpp

19 lines
734 B
Plaintext

$OpenBSD: patch-src_contentscanners_clamav_cpp,v 1.1 2008/04/21 18:32:06 mbalmer Exp $
--- src/contentscanners/clamav.cpp.orig Mon Apr 21 20:20:39 2008
+++ src/contentscanners/clamav.cpp Mon Apr 21 20:21:22 2008
@@ -273,13 +273,9 @@ int clamavinstance::init(void* args)
if (limits.maxreclevel < 1) {
limits.maxreclevel = 5;
}
- limits.maxratio = cv["maxratio"].toInteger();
- if (limits.maxratio < 1) {
- limits.maxratio = 200;
- }
#ifdef DGDEBUG
std::cerr << "maxfiles: " << limits.maxfiles << " maxfilesize: " << limits.maxfilesize
- << " maxreclevel: " << limits.maxreclevel << " maxratio: " << limits.maxratio << std::endl;
+ << " maxreclevel: " << limits.maxreclevel << std::endl;
#endif
// load virus database