diff options
author | mmcc <> | 2015-12-23 01:46:33 +0000 |
---|---|---|
committer | mmcc <> | 2015-12-23 01:46:33 +0000 |
commit | 6f8e26fae6530fb25cc46f618baf51c1fe8f3397 (patch) | |
tree | 7d14315182b4c05f99b53bad2eac74893c9314c2 | |
parent | 4338530be2359299758f744c0749dd2081e456bb (diff) | |
download | openbsd-6f8e26fae6530fb25cc46f618baf51c1fe8f3397.tar.gz openbsd-6f8e26fae6530fb25cc46f618baf51c1fe8f3397.tar.bz2 openbsd-6f8e26fae6530fb25cc46f618baf51c1fe8f3397.zip |
assign pointer to NULL rather than 0
-rw-r--r-- | src/lib/libcrypto/asn1/bio_asn1.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/bio_asn1.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/bio_asn1.c b/src/lib/libcrypto/asn1/bio_asn1.c index 219810db82..02ad310639 100644 --- a/src/lib/libcrypto/asn1/bio_asn1.c +++ b/src/lib/libcrypto/asn1/bio_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_asn1.c,v 1.11 2015/02/10 09:52:35 miod Exp $ */ | 1 | /* $OpenBSD: bio_asn1.c,v 1.12 2015/12/23 01:46:33 mmcc Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -173,7 +173,7 @@ asn1_bio_init(BIO_ASN1_BUF_CTX *ctx, int size) | |||
173 | ctx->copylen = 0; | 173 | ctx->copylen = 0; |
174 | ctx->asn1_class = V_ASN1_UNIVERSAL; | 174 | ctx->asn1_class = V_ASN1_UNIVERSAL; |
175 | ctx->asn1_tag = V_ASN1_OCTET_STRING; | 175 | ctx->asn1_tag = V_ASN1_OCTET_STRING; |
176 | ctx->ex_buf = 0; | 176 | ctx->ex_buf = NULL; |
177 | ctx->ex_pos = 0; | 177 | ctx->ex_pos = 0; |
178 | ctx->ex_len = 0; | 178 | ctx->ex_len = 0; |
179 | ctx->state = ASN1_STATE_START; | 179 | ctx->state = ASN1_STATE_START; |
diff --git a/src/lib/libssl/src/crypto/asn1/bio_asn1.c b/src/lib/libssl/src/crypto/asn1/bio_asn1.c index 219810db82..02ad310639 100644 --- a/src/lib/libssl/src/crypto/asn1/bio_asn1.c +++ b/src/lib/libssl/src/crypto/asn1/bio_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_asn1.c,v 1.11 2015/02/10 09:52:35 miod Exp $ */ | 1 | /* $OpenBSD: bio_asn1.c,v 1.12 2015/12/23 01:46:33 mmcc Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -173,7 +173,7 @@ asn1_bio_init(BIO_ASN1_BUF_CTX *ctx, int size) | |||
173 | ctx->copylen = 0; | 173 | ctx->copylen = 0; |
174 | ctx->asn1_class = V_ASN1_UNIVERSAL; | 174 | ctx->asn1_class = V_ASN1_UNIVERSAL; |
175 | ctx->asn1_tag = V_ASN1_OCTET_STRING; | 175 | ctx->asn1_tag = V_ASN1_OCTET_STRING; |
176 | ctx->ex_buf = 0; | 176 | ctx->ex_buf = NULL; |
177 | ctx->ex_pos = 0; | 177 | ctx->ex_pos = 0; |
178 | ctx->ex_len = 0; | 178 | ctx->ex_len = 0; |
179 | ctx->state = ASN1_STATE_START; | 179 | ctx->state = ASN1_STATE_START; |