summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-12-09 13:10:36 +0000
committerDr. Stephen Henson <steve@openssl.org>2015-12-09 22:09:20 +0000
commit91e7bcc26494f1c0060964c90db2660a9e23e37a (patch)
tree2201cdb7c27b546d70109af59618d97254670a51 /crypto/engine
parent7bb75a5d08fad1cebd8cfc153c92d1f0c9ff03a0 (diff)
Use NULL comparison
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/tb_eckey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/engine/tb_eckey.c b/crypto/engine/tb_eckey.c
index a1cffe8159..dbb41396c9 100644
--- a/crypto/engine/tb_eckey.c
+++ b/crypto/engine/tb_eckey.c
@@ -76,7 +76,7 @@ static void engine_unregister_all_EC(void)
int ENGINE_register_EC(ENGINE *e)
{
- if (e->ec_meth)
+ if (e->ec_meth != NULL)
return engine_table_register(&dh_table,
engine_unregister_all_EC, e, &dummy_nid,
1, 0);
@@ -93,7 +93,7 @@ void ENGINE_register_all_EC()
int ENGINE_set_default_EC(ENGINE *e)
{
- if (e->ec_meth)
+ if (e->ec_meth != NULL)
return engine_table_register(&dh_table,
engine_unregister_all_EC, e, &dummy_nid,
1, 1);