summaryrefslogtreecommitdiff
path: root/tests/key-material-set-dtls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/key-material-set-dtls.c')
-rw-r--r--tests/key-material-set-dtls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/key-material-set-dtls.c b/tests/key-material-set-dtls.c
index bd119cd1ef..6e6d6d2df5 100644
--- a/tests/key-material-set-dtls.c
+++ b/tests/key-material-set-dtls.c
@@ -71,8 +71,10 @@ static void terminate(void)
{
int status = 0;
- kill(child, SIGTERM);
- wait(&status);
+ if (child) {
+ kill(child, SIGTERM);
+ wait(&status);
+ }
exit(1);
}