Commit 1d06278
RoomWithOutRoof
crypto: add NULL check for SSL_new() result in SSLPointer::New
Add explicit NULL check for SSL_new() return value in SSLPointer::New(),
consistent with the pattern used by CipherCtxPointer::New().
Fixes a potential NULL pointer dereference when OpenSSL fails to allocate
an SSL structure under memory pressure (Coverity CID 15826735).
Fixes: #627741 parent d0fa608 commit 1d06278
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2828 | 2828 | | |
2829 | 2829 | | |
2830 | 2830 | | |
2831 | | - | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
2832 | 2834 | | |
2833 | 2835 | | |
2834 | 2836 | | |
| |||
0 commit comments