diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-18 14:27:41 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-18 14:27:41 +0000 |
commit | b4e88ccb2875b414c3882759a1f1c6a4a07df389 (patch) | |
tree | 414529d2ef4e94a285a19a996db7e4301a8abe6c /apps | |
parent | d916ba1ba176adae488f148818eafc4e8c1a38ca (diff) |
ensure the pointer is valid before using it
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ts.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1041,6 +1041,8 @@ static TS_VERIFY_CTX *create_verify_ctx(char *data, char *digest, if (!(request = d2i_TS_REQ_bio(input, NULL))) goto err; if (!(ctx = TS_REQ_to_TS_VERIFY_CTX(request, NULL))) goto err; } + else + return NULL; /* Add the signature verification flag and arguments. */ ctx->flags |= TS_VFY_SIGNATURE; |