Skip to content
Permalink
Browse files

10787 rsa: 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>
  • Loading branch information...
tsoome committed Jan 20, 2019
1 parent b5083b9 commit b4a44cf294b47530f872176be732538fdf3536a0
Showing with 3 additions and 3 deletions.
  1. +3 −3 usr/src/uts/common/crypto/io/rsa.c
@@ -318,7 +318,7 @@ static int compare_data(crypto_data_t *, uchar_t *);
static int core_rsa_encrypt(crypto_key_t *, uchar_t *, int, uchar_t *, int);
static int core_rsa_decrypt(crypto_key_t *, uchar_t *, int, uchar_t *);

static crypto_kcf_provider_handle_t rsa_prov_handle = NULL;
static crypto_kcf_provider_handle_t rsa_prov_handle = 0;

int
_init(void)
@@ -341,11 +341,11 @@ int
_fini(void)
{
/* Unregister from KCF if module is registered */
if (rsa_prov_handle != NULL) {
if (rsa_prov_handle != 0) {
if (crypto_unregister_provider(rsa_prov_handle))
return (EBUSY);

rsa_prov_handle = NULL;
rsa_prov_handle = 0;
}

return (mod_remove(&modlinkage));

0 comments on commit b4a44cf

Please sign in to comment.
You can’t perform that action at this time.