fix leaks introduced by r3417.

git-svn: trunk@3424
remotes/push_mirror/metadata
Török Edvin 18 years ago
parent 19da6c08b9
commit 1eed6af5b9
  1. 4
      ChangeLog
  2. 7
      libclamav/phishcheck.c

@ -1,3 +1,7 @@
Sat Dec 15 15:22:54 EET 2007 (edwin)
-----------------------------------
* libclamav/phishcheck.c: fix leaks introduced by r3417.
Fri Dec 14 22:55:32 CET 2007 (tk)
---------------------------------
* libclamav: improved filetype detection code; filetype definitions can now

@ -1136,12 +1136,15 @@ static enum phish_status phishingCheck(const struct cl_engine* engine,struct url
if(!(phishy&DOMAIN_LISTED) &&
!domainlist_match(engine,host_url.displayLink.data,host_url.realLink.data,&urls->pre_fixup,1,&urls->flags)) {
return CL_PHISH_CLEAN; /* domain not listed */
free_if_needed(&host_url);
return CL_PHISH_CLEAN; /* domain not listed */
}
/* link type filtering must occur after last domainlist_match */
if(urls->link_type & LINKTYPE_IMAGE && !(urls->flags&CHECK_IMG_URL))
if(urls->link_type & LINKTYPE_IMAGE && !(urls->flags&CHECK_IMG_URL)) {
free_if_needed(&host_url);
return CL_PHISH_CLEAN;/* its listed, but this link type is filtered */
}
if(urls->flags&CHECK_CLOAKING) {
/*Checks if URL is cloaked.

Loading…
Cancel
Save