Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: drbg - set freed buffers to NULL
During freeing of the internal buffers used by the DRBG, set the pointer to NULL. It is possible that the context with the freed buffers is reused. In case of an error during initialization where the pointers do not yet point to allocated memory, the NULL value prevents a double free. Cc: [email protected] Fixes: 3cfc3b9 ("crypto: drbg - use aligned buffers") Signed-off-by: Stephan Mueller <[email protected]> Reported-by: [email protected] Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information