lkml.org 
[lkml]   [2020]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] crypto: DRBG - always try to free Jitter RNG instance
Date
Am Freitag, 5. Juni 2020, 18:21:49 CEST schrieb Eric Biggers:

Hi Eric,

> To be concrete, I'm suggesting:
>
> if (!IS_ERR_OR_NULL(drbg->jent))
> crypto_free_rng(drbg->jent);
> drbg->jent = NULL;

I currently do not see that this could lead to an issue. But you are right, we
should use defensive programming everywhere.

I will send a v3 shortly.

Thanks.


Ciao
Stephan


\
 
 \ /
  Last update: 2020-06-07 15:11    [W:1.461 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site