mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04: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:
commit
55cec5d45d
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue