~ubuntu-branches/ubuntu/intrepid/clamav/intrepid-backports

« back to all changes in this revision

Viewing changes to libclamav/phishcheck.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-11-05 23:14:14 UTC
  • mfrom: (0.3.4 jaunty-proposed)
  • Revision ID: james.westby@ubuntu.com-20091105231414-qm9ppy5rowfqhseq
Tags: 0.95.3+dfsg-1ubuntu0.09.04~intrepid1
* Source backport for Intrepid from jaunty-proposed (LP: #473707)
  - Drop build-dep on libtommath-dev and use internal copy

Show diffs side-by-side

added added

removed removed

Lines of Context:
1198
1198
            h[64]='\0';
1199
1199
            cli_dbgmsg("Looking up hash %s for %s(%u)%s(%u)\n", h, host, (unsigned)hlen, path, (unsigned)plen);
1200
1200
            if (prefix_matched) {
1201
 
                if (cli_bm_scanbuff(sha256_dig, 4, &virname, &rlist->hostkey_prefix,0,0,-1) == CL_VIRUS) {
 
1201
                if (cli_bm_scanbuff(sha256_dig, 4, &virname, NULL, &rlist->hostkey_prefix,0,0,-1) == CL_VIRUS) {
1202
1202
                    cli_dbgmsg("prefix matched\n");
1203
1203
                    *prefix_matched = 1;
1204
1204
                } else
1205
1205
                    return CL_SUCCESS;
1206
1206
            }
1207
 
            if (cli_bm_scanbuff(sha256_dig, 32, &virname, &rlist->sha256_hashes,0,0,-1) == CL_VIRUS) {
 
1207
            if (cli_bm_scanbuff(sha256_dig, 32, &virname, NULL, &rlist->sha256_hashes,0,0,-1) == CL_VIRUS) {
1208
1208
                cli_dbgmsg("This hash matched: %s\n", h);
1209
1209
                switch(*virname) {
1210
1210
                    case 'W':