aboutsummaryrefslogtreecommitdiffstats
path: root/apps/ts.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-03-18 14:27:41 +0000
committerNils Larsch <nils@openssl.org>2006-03-18 14:27:41 +0000
commitb4e88ccb2875b414c3882759a1f1c6a4a07df389 (patch)
tree414529d2ef4e94a285a19a996db7e4301a8abe6c /apps/ts.c
parentd916ba1ba176adae488f148818eafc4e8c1a38ca (diff)
downloadopenssl-b4e88ccb2875b414c3882759a1f1c6a4a07df389.tar.gz
ensure the pointer is valid before using it
Diffstat (limited to 'apps/ts.c')
-rw-r--r--apps/ts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/ts.c b/apps/ts.c
index 0083f9a1e1..f0923360a7 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -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;