diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2007-03-16 23:08:07 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2007-03-16 23:08:07 +0000 |
commit | 9fc481aff9a728df65acfaf631c690e99b6a2458 (patch) | |
tree | 1a068ec539f45296efbf3a4ba6ec2337f0f4a7c8 /libexec | |
parent | d4b485062217e38c8b7ba97c5107d0d7b50908d1 (diff) |
Fix dribbly HMAC leak.
ok reyk@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/spamd/sync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/spamd/sync.c b/libexec/spamd/sync.c index 70d0e6f4d73..d6026ae9f46 100644 --- a/libexec/spamd/sync.c +++ b/libexec/spamd/sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sync.c,v 1.1 2007/03/04 03:19:41 beck Exp $ */ +/* $OpenBSD: sync.c,v 1.2 2007/03/16 23:08:06 beck Exp $ */ /* * Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -497,6 +497,7 @@ sync_update(time_t now, char *helo, char *ip, char *from, char *to) /* Send message to the target hosts */ sync_send(iov, i); + HMAC_CTX_cleanup(&ctx); } void @@ -552,6 +553,7 @@ sync_addr(time_t now, time_t expire, char *ip, u_int16_t type) /* Send message to the target hosts */ sync_send(iov, i); + HMAC_CTX_cleanup(&ctx); } void |