summaryrefslogtreecommitdiff
path: root/sntp/crypto.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-06-24 00:20:45 +0000
committerCy Schubert <cy@FreeBSD.org>2020-06-24 00:20:45 +0000
commit3914721463f70500ecc1f59312b122d8788465cf (patch)
treef253e72838d762e229ca71912a4a928e96cac2bd /sntp/crypto.c
parent5171bc9b11192d9ad273db7854787eaa65eb9997 (diff)
Notes
Diffstat (limited to 'sntp/crypto.c')
-rw-r--r--sntp/crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sntp/crypto.c b/sntp/crypto.c
index 8ffe006f9912..8a47edef7184 100644
--- a/sntp/crypto.c
+++ b/sntp/crypto.c
@@ -70,7 +70,8 @@ compute_mac(
}
len = (u_int)slen;
- CMAC_CTX_cleanup(ctx);
+ if (ctx)
+ CMAC_CTX_free(ctx);
/* Test our AES-128-CMAC implementation */
} else /* MD5 MAC handling */