summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-20 19:22:47 +0200
committerToomas Soome <tsoome@me.com>2019-04-19 23:04:04 +0300
commit3ec36537a18a5cb5e8a31eca1ea311e033993317 (patch)
treedceda6d963f5753db0b172e505e1053054fd01a7
parent8a292154575f4abb5521e31d3d38117a6a3d077f (diff)
downloadillumos-joyent-3ec36537a18a5cb5e8a31eca1ea311e033993317.tar.gz
10785 ecc: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/crypto/io/ecc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/crypto/io/ecc.c b/usr/src/uts/common/crypto/io/ecc.c
index 40c878466f..1f34b66194 100644
--- a/usr/src/uts/common/crypto/io/ecc.c
+++ b/usr/src/uts/common/crypto/io/ecc.c
@@ -222,7 +222,7 @@ static crypto_provider_info_t ecc_prov_info = {
ecc_mech_info_tab
};
-static crypto_kcf_provider_handle_t ecc_prov_handle = NULL;
+static crypto_kcf_provider_handle_t ecc_prov_handle = 0;
static int ecc_sign_common(ecc_ctx_t *, crypto_data_t *, crypto_data_t *,
crypto_req_handle_t);
@@ -256,11 +256,11 @@ int
_fini(void)
{
/* Unregister from KCF if module is registered */
- if (ecc_prov_handle != NULL) {
+ if (ecc_prov_handle != 0) {
if (crypto_unregister_provider(ecc_prov_handle))
return (EBUSY);
- ecc_prov_handle = NULL;
+ ecc_prov_handle = 0;
}
return (mod_remove(&modlinkage));