2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Merge branch '4077-add-RUNTIME_CHECK-around-wrap' into 'main'

Ensure "wrap" variable is non-NULL

Closes #4077

See merge request isc-projects/bind9!7948
This commit is contained in:
Michal Nowak
2023-05-19 09:07:18 +00:00

View File

@@ -57,6 +57,7 @@ struct thread_wrap {
static struct thread_wrap *
thread_wrap(isc_threadfunc_t func, void *arg) {
struct thread_wrap *wrap = malloc(sizeof(*wrap));
RUNTIME_CHECK(wrap != NULL);
*wrap = (struct thread_wrap){
.func = func,
.arg = arg,