diff options
| -rw-r--r-- | crypto/drbg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c index 4faa2781c964..466a112a4446 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c | |||
| @@ -1134,8 +1134,10 @@ static inline void drbg_dealloc_state(struct drbg_state *drbg) | |||
| 1134 | if (!drbg) | 1134 | if (!drbg) |
| 1135 | return; | 1135 | return; |
| 1136 | kzfree(drbg->Vbuf); | 1136 | kzfree(drbg->Vbuf); |
| 1137 | drbg->Vbuf = NULL; | ||
| 1137 | drbg->V = NULL; | 1138 | drbg->V = NULL; |
| 1138 | kzfree(drbg->Cbuf); | 1139 | kzfree(drbg->Cbuf); |
| 1140 | drbg->Cbuf = NULL; | ||
| 1139 | drbg->C = NULL; | 1141 | drbg->C = NULL; |
| 1140 | kzfree(drbg->scratchpadbuf); | 1142 | kzfree(drbg->scratchpadbuf); |
| 1141 | drbg->scratchpadbuf = NULL; | 1143 | drbg->scratchpadbuf = NULL; |
