Repository navigation
Commit 0c5069f
authored
Guard against crash when sk_CRYPTO_BUFFER_new_null() returns NULL (#1007)
Motivation:
When out of memory sk_CRYPTO_BUFFER_new_null() will return NULL, so we
should better guard against it as otherwise we might crash
Modifications:
Check for NULL and handle it
Result:
More robust code even when out of memory1 parent f234e92 commit 0c5069f
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
476 | 479 | | |
477 | 480 | | |
478 | 481 | | |
| |||
0 commit comments