Commit 125d852
committed
crypto/tls: Fix nil dereference in greased ECH acceptance signal
When greasing the ECH acceptance signal in the HRR, the server uses
`c.config.Rand`, which may be `nil`. This prevents the nil dereference
by using `c.config.rand()`, which first checks if `c.config.Rand ==
nil`'.
This bug was found when interop testing with boringSSL.1 parent 808f8fc commit 125d852
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
0 commit comments