mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +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:
@@ -57,6 +57,7 @@ struct thread_wrap {
|
|||||||
static struct thread_wrap *
|
static struct thread_wrap *
|
||||||
thread_wrap(isc_threadfunc_t func, void *arg) {
|
thread_wrap(isc_threadfunc_t func, void *arg) {
|
||||||
struct thread_wrap *wrap = malloc(sizeof(*wrap));
|
struct thread_wrap *wrap = malloc(sizeof(*wrap));
|
||||||
|
RUNTIME_CHECK(wrap != NULL);
|
||||||
*wrap = (struct thread_wrap){
|
*wrap = (struct thread_wrap){
|
||||||
.func = func,
|
.func = func,
|
||||||
.arg = arg,
|
.arg = arg,
|
||||||
|
Reference in New Issue
Block a user