Cleanup libcrypto memory management. Remove redundant NULL checks
authortobhe <tobhe@openbsd.org>
Mon, 13 Dec 2021 17:35:34 +0000 (17:35 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 13 Dec 2021 17:35:34 +0000 (17:35 +0000)
commit7199b42c3982899c973c524f49dc2ca40c0e9162
treef02cb0a90a6a9bf181120a9edf99198162c33fbc
parenta4c8c587915fba57f45bb1d00aa28ffbd3f8af44
Cleanup libcrypto memory management.  Remove redundant NULL checks
before calling *_free() functions.  Use 'get0' functions where it
makes sense to avoid some frees.

Feedback and ok tb@
sbin/iked/ca.c
sbin/iked/crypto.c
sbin/iked/ocsp.c