Browse code

Fix (null) FOUND

git-svn: trunk@3143

Török Edvin authored on 2007/07/13 06:13:08
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Jul 12 23:17:00 CEST 2007 (edwin)
2
+-----------------------------------
3
+  * libclamav/phishcheck.c: fix (null) FOUND
4
+
1 5
 Thu Jul 12 11:41:15 BST 2007 (trog)
2 6
 -----------------------------------
3 7
   * libclamav/unarj.c: fix include
... ...
@@ -760,7 +760,8 @@ int phishingScan(message* m,const char* dir,cli_ctx* ctx,tag_arguments_t* hrefs)
760 760
 	if(!pchk || pchk->is_disabled)
761 761
 		return CL_CLEAN;
762 762
 
763
-	*ctx->virname=NULL;
763
+	if(!ctx->found_possibly_unwanted)
764
+		*ctx->virname=NULL;
764 765
 	for(i=0;i<hrefs->count;i++)
765 766
 		if(hrefs->contents[i]) {
766 767
 			struct url_check urls;