diff options
author | miod <> | 2015-02-10 09:46:30 +0000 |
---|---|---|
committer | miod <> | 2015-02-10 09:46:30 +0000 |
commit | c54f1e6efb3beda80d415ba75614cbc695f799be (patch) | |
tree | 8bb4657eb5417a2a0ea6710585ef13aa7b25433c /src/lib/libcrypto/ts | |
parent | bedef42af36243e74221aa77e809718c15fae035 (diff) | |
download | openbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.tar.gz openbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.tar.bz2 openbsd-c54f1e6efb3beda80d415ba75614cbc695f799be.zip |
Remove assert() or OPENSSL_assert() of pointers being non-NULL. The policy
for libraries in OpenBSD is to deliberately let NULL pointers cause a SIGSEGV.
ok doug@ jsing@
Diffstat (limited to 'src/lib/libcrypto/ts')
-rw-r--r-- | src/lib/libcrypto/ts/ts_verify_ctx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ts/ts_verify_ctx.c b/src/lib/libcrypto/ts/ts_verify_ctx.c index 373399d943..7dda76e7d9 100644 --- a/src/lib/libcrypto/ts/ts_verify_ctx.c +++ b/src/lib/libcrypto/ts/ts_verify_ctx.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts_verify_ctx.c,v 1.7 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: ts_verify_ctx.c,v 1.8 2015/02/10 09:46:30 miod Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2003. | 3 | * project 2003. |
4 | */ | 4 | */ |
@@ -76,7 +76,6 @@ TS_VERIFY_CTX_new(void) | |||
76 | void | 76 | void |
77 | TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx) | 77 | TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx) |
78 | { | 78 | { |
79 | OPENSSL_assert(ctx != NULL); | ||
80 | memset(ctx, 0, sizeof(TS_VERIFY_CTX)); | 79 | memset(ctx, 0, sizeof(TS_VERIFY_CTX)); |
81 | } | 80 | } |
82 | 81 | ||
@@ -123,7 +122,6 @@ TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx) | |||
123 | ASN1_OCTET_STRING *msg; | 122 | ASN1_OCTET_STRING *msg; |
124 | const ASN1_INTEGER *nonce; | 123 | const ASN1_INTEGER *nonce; |
125 | 124 | ||
126 | OPENSSL_assert(req != NULL); | ||
127 | if (ret) | 125 | if (ret) |
128 | TS_VERIFY_CTX_cleanup(ret); | 126 | TS_VERIFY_CTX_cleanup(ret); |
129 | else if (!(ret = TS_VERIFY_CTX_new())) | 127 | else if (!(ret = TS_VERIFY_CTX_new())) |