diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-06-24 00:20:45 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-06-24 00:20:45 +0000 |
commit | 3914721463f70500ecc1f59312b122d8788465cf (patch) | |
tree | f253e72838d762e229ca71912a4a928e96cac2bd /sntp/crypto.c | |
parent | 5171bc9b11192d9ad273db7854787eaa65eb9997 (diff) |
Notes
Diffstat (limited to 'sntp/crypto.c')
-rw-r--r-- | sntp/crypto.c | 3 |
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 */ |