diff options
| author | 2010-10-06 10:00:59 +0000 | |
|---|---|---|
| committer | 2010-10-06 10:00:59 +0000 | |
| commit | 0badd83a3499a7cfb3909f343cda72ac5cd6c030 (patch) | |
| tree | 9e276cccfab88d587714522ba078c5922f35593f /sys/crypto/cryptosoft.c | |
| parent | do not pass GREY entries to pf's spamd-white table if already TRAPPED. (diff) | |
| download | wireguard-openbsd-0badd83a3499a7cfb3909f343cda72ac5cd6c030.tar.xz wireguard-openbsd-0badd83a3499a7cfb3909f343cda72ac5cd6c030.zip | |
zero out auth hash context before freeing it; ok matthew millert
Diffstat (limited to 'sys/crypto/cryptosoft.c')
| -rw-r--r-- | sys/crypto/cryptosoft.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 446c91c49de..7006afb968b 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.55 2010/09/22 11:54:23 mikeb Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.56 2010/10/06 10:00:59 mikeb Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -1037,8 +1037,10 @@ swcr_freesession(u_int64_t tid) case CRYPTO_SHA1: axf = swd->sw_axf; - if (swd->sw_ictx) + if (swd->sw_ictx) { + bzero(swd->sw_ictx, axf->ctxsize); free(swd->sw_ictx, M_CRYPTO_DATA); + } break; } |
