summaryrefslogtreecommitdiffstats
path: root/crypto/objects/obj_xref.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/objects/obj_xref.c')
-rw-r--r--crypto/objects/obj_xref.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/objects/obj_xref.c b/crypto/objects/obj_xref.c
index da3469f0e8..6e35f5746f 100644
--- a/crypto/objects/obj_xref.c
+++ b/crypto/objects/obj_xref.c
@@ -147,16 +147,16 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
int OBJ_add_sigid(int signid, int dig_id, int pkey_id)
{
nid_triple *ntr;
- if (!sig_app)
+ if (sig_app == NULL)
sig_app = sk_nid_triple_new(sig_sk_cmp);
- if (!sig_app)
+ if (sig_app == NULL)
return 0;
- if (!sigx_app)
+ if (sigx_app == NULL)
sigx_app = sk_nid_triple_new(sigx_cmp);
- if (!sigx_app)
+ if (sigx_app == NULL)
return 0;
ntr = OPENSSL_malloc(sizeof(*ntr));
- if (!ntr)
+ if (ntr == NULL)
return 0;
ntr->sign_id = signid;
ntr->hash_id = dig_id;