| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 46a6192 commit 3337b09
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1470,6 +1470,7 @@ BIOPointer BIOPointer::NewSecMem() { | |||
| 1470 | 1470 | } | |
| 1471 | 1471 | ||
| 1472 | 1472 | BIOPointer BIOPointer::New(const BIO_METHOD* method) { | |
| 1473 | + if (method == nullptr) return {}; | ||
| 1473 | 1474 | return BIOPointer(BIO_new(method)); | |
| 1474 | 1475 | } | |
| 1475 | 1476 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,6 +226,7 @@ const BIO_METHOD* NodeBIO::GetMethod() { | |||
| 226 | 226 | // Static initialization ensures that this is safe to use concurrently. | |
| 227 | 227 | static const BIO_METHOD* method = [&]() { | |
| 228 | 228 | BIO_METHOD* method = BIO_meth_new(BIO_TYPE_MEM, "node.js SSL buffer"); | |
| 229 | + CHECK_NOT_NULL(method); | ||
| 229 | 230 | BIO_meth_set_write(method, Write); | |
| 230 | 231 | BIO_meth_set_read(method, Read); | |
| 231 | 232 | BIO_meth_set_puts(method, Puts); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments