Commit 442d3f3
committed
src/ssl.c: refactor fix in wolfSSL_RAND_bytes() for race on initGlobalRNG to retain the initial check on initGlobalRNG, and just recheck it, to avoid possible access to uninitialized globalRNGMutex.
1 parent 59290cd commit 442d3f3
1 file changed
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
23925 | 23925 | | |
23926 | 23926 | | |
23927 | 23927 | | |
23928 | | - | |
23929 | | - | |
23930 | | - | |
23931 | | - | |
23932 | | - | |
23933 | 23928 | | |
23934 | | - | |
23935 | | - | |
| 23929 | + | |
| 23930 | + | |
| 23931 | + | |
| 23932 | + | |
| 23933 | + | |
| 23934 | + | |
| 23935 | + | |
| 23936 | + | |
| 23937 | + | |
| 23938 | + | |
| 23939 | + | |
| 23940 | + | |
| 23941 | + | |
| 23942 | + | |
23936 | 23943 | | |
23937 | | - | |
| 23944 | + | |
| 23945 | + | |
23938 | 23946 | | |
23939 | 23947 | | |
23940 | | - | |
23941 | | - | |
23942 | | - | |
23943 | | - | |
23944 | 23948 | | |
23945 | 23949 | | |
23946 | 23950 | | |
| |||
0 commit comments