summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-16 15:32:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-16 16:18:31 +0100
commit7a62e828f7867d1035843fa499af810dfc915816 (patch)
treedce6db953775a2c86809d54ad10a4f70923e3237 /utils
parentfcfe6de1da024ebf63801e3b5950e0b98336f68e (diff)
downloadrspamd-7a62e828f7867d1035843fa499af810dfc915816.tar.gz
rspamd-7a62e828f7867d1035843fa499af810dfc915816.zip
Update->add
Diffstat (limited to 'utils')
-rwxr-xr-xutils/redirector.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/redirector.pl.in b/utils/redirector.pl.in
index fb8daf251..7c79cdfa7 100755
--- a/utils/redirector.pl.in
+++ b/utils/redirector.pl.in
@@ -186,7 +186,7 @@ sub memcached_check_url {
my ( $url ) = @_;
my $context = Digest->new("SHA-256");
- $context->update($url);
+ $context->add($url);
return $memd->get($context->digest());
}
@@ -196,7 +196,7 @@ sub memcached_cache_url {
if ($url ne $url_real) {
my $context = Digest->new("SHA-256");
- $context->update($url);
+ $context->add($url);
$memd->set($context->digest(), $url_real,
$cfg{cache_expire});
}