diff options
Diffstat (limited to 'mail/spamguard/files/patch-hash.c')
-rw-r--r-- | mail/spamguard/files/patch-hash.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/spamguard/files/patch-hash.c b/mail/spamguard/files/patch-hash.c new file mode 100644 index 000000000000..c55f85f37cda --- /dev/null +++ b/mail/spamguard/files/patch-hash.c @@ -0,0 +1,20 @@ +--- hash.c.orig 2007-05-10 21:18:39 UTC ++++ hash.c +@@ -141,7 +141,7 @@ hash_lookup(const char *target, unsigned int h) + bp = bucket_arr[h]; + + while (bp != NULL) { +- if (! strncmp(bp->subject, target, sizeof(target))) ++ if (! strncmp(bp->subject, target, sizeof(bp->subject))) + return bp; + bp = bp->next; + } +@@ -156,7 +156,7 @@ hash_lookup_IP(const char *target, unsigned int h) + ip = IP_bucket_arr[h]; + + while (ip != NULL) { +- if (! strncmp(ip->IP, target, sizeof(target))) ++ if (! strncmp(ip->IP, target, sizeof(ip->IP))) + return 1; + ip = ip->next; + } |