mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
REQUIRE isc_condition_waituntil args all non-NULL
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <isc/assertions.h>
|
||||
#include <isc/condition.h>
|
||||
#include <isc/error.h>
|
||||
|
||||
@@ -29,6 +30,8 @@ isc_condition_waituntil(isc_condition_t *c, isc_mutex_t *m, isc_time_t *t)
|
||||
int presult;
|
||||
struct timespec ts;
|
||||
|
||||
REQUIRE(c != NULL && m != NULL && t != NULL);
|
||||
|
||||
ts.tv_sec = t->seconds;
|
||||
ts.tv_nsec = t->nanoseconds;
|
||||
do {
|
||||
|
Reference in New Issue
Block a user