Fix compilation error from new clamav.h

git-svn: trunk@2568
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent 9f8098c075
commit 814c4a959f
  1. 5
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/clamav-milter/clamav-milter.c
  3. 9
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,8 @@
Wed Dec 20 14:56:12 GMT 2006 (njh)
----------------------------------
* libclamav/mbox.c, clamav-milter: Fix compilation error from new clamav.h
(see below)
Wed Dec 20 02:19:45 CET 2006 (tk) Wed Dec 20 02:19:45 CET 2006 (tk)
--------------------------------- ---------------------------------
* libclamav: options cleanup; requires additional changes in mbox.c and * libclamav: options cleanup; requires additional changes in mbox.c and

@ -24,7 +24,7 @@
* *
* For installation instructions see the file INSTALL that came with this file * For installation instructions see the file INSTALL that came with this file
*/ */
static char const rcsid[] = "$Id: clamav-milter.c,v 1.305 2006/12/19 15:41:16 njh Exp $"; static char const rcsid[] = "$Id: clamav-milter.c,v 1.306 2006/12/20 14:55:17 njh Exp $";
#define CM_VERSION "devel-191206" #define CM_VERSION "devel-191206"
@ -5355,12 +5355,12 @@ loadDatabase(void)
#endif #endif
signatures = 0; signatures = 0;
newroot = NULL; newroot = NULL;
dboptions = 0;
if(!cfgopt(copt, "DetectPhishing")->enabled) { if(!cfgopt(copt, "DetectPhishing")->enabled) {
dboptions |= CL_DB_NOPHISHING;
logg("Not loading phishing signatures.\n"); logg("Not loading phishing signatures.\n");
} dboptions = 0;
} else
dboptions = CL_DB_PHISHING;
ret = cl_load(dbdir, &newroot, &signatures, dboptions); ret = cl_load(dbdir, &newroot, &signatures, dboptions);
if(ret != 0) { if(ret != 0) {

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA. * MA 02110-1301, USA.
*/ */
static char const rcsid[] = "$Id: mbox.c,v 1.362 2006/12/18 17:03:58 njh Exp $"; static char const rcsid[] = "$Id: mbox.c,v 1.363 2006/12/20 14:55:17 njh Exp $";
#ifdef _MSC_VER #ifdef _MSC_VER
#include <winsock.h> /* only needed in CL_EXPERIMENTAL */ #include <winsock.h> /* only needed in CL_EXPERIMENTAL */
@ -2037,7 +2037,7 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re
fileblob *fb; fileblob *fb;
bool infected = FALSE; bool infected = FALSE;
#ifdef CL_EXPERIMENTAL #ifdef CL_EXPERIMENTAL
const int doPhishingScan = !(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS); /* || (mctx->ctx->options&CL_SCAN_PHISHING_GA_TRAIN) || (mctx->ctx->options&CL_SCAN_PHISHING_GA); kept here for the GA MERGE */ const int doPhishingScan = mctx->ctx->engine->dboptions&CL_DB_PHISHING_URLS; /* || (mctx->ctx->options&CL_SCAN_PHISHING_GA_TRAIN) || (mctx->ctx->options&CL_SCAN_PHISHING_GA); kept here for the GA MERGE */
#endif #endif
cli_dbgmsg("in parseEmailBody\n"); cli_dbgmsg("in parseEmailBody\n");
@ -3909,7 +3909,8 @@ checkURLs(message *mainMessage, mbox_ctx *mctx, int *rc, int is_html)
tag_arguments_t hrefs; tag_arguments_t hrefs;
blob *b; blob *b;
hrefs.scanContents = (!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS)); /* aCaB: stripped GA related stuff */ /* aCaB: stripped GA related stuff */
hrefs.scanContents = mctx->ctx->engine->dboptions&CL_DB_PHISHING_URLS;
#if (!defined(FOLLOWURLS)) || (FOLLOWURLS <= 0) #if (!defined(FOLLOWURLS)) || (FOLLOWURLS <= 0)
if(!hrefs.scanContents) if(!hrefs.scanContents)
@ -5246,7 +5247,7 @@ do_multipart(message *mainMessage, message **messages, int i, int *rc, mbox_ctx
if((mctx->ctx->options&CL_SCAN_MAILURL) && is_html) if((mctx->ctx->options&CL_SCAN_MAILURL) && is_html)
checkURLs(aMessage, mctx, rc, 1); checkURLs(aMessage, mctx, rc, 1);
#ifdef CL_EXPERIMENTAL #ifdef CL_EXPERIMENTAL
else if(!(mctx->ctx->engine->dboptions&CL_DB_NOPHISHING_URLS)) else if(mctx->ctx->engine->dboptions&CL_DB_PHISHING_URLS)
checkURLs(aMessage, mctx, rc, is_html); checkURLs(aMessage, mctx, rc, is_html);
#endif #endif
messageAddArgument(aMessage, messageAddArgument(aMessage,

Loading…
Cancel
Save