summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <>2015-12-23 01:50:26 +0000
committermmcc <>2015-12-23 01:50:26 +0000
commit6f23276bbcf82076c4ba8d386890d184a7e7f0a6 (patch)
tree5705d37be6a211db14e3fa31ff1be5805417c77d
parent6f8e26fae6530fb25cc46f618baf51c1fe8f3397 (diff)
downloadopenbsd-6f23276bbcf82076c4ba8d386890d184a7e7f0a6.tar.gz
openbsd-6f23276bbcf82076c4ba8d386890d184a7e7f0a6.tar.bz2
openbsd-6f23276bbcf82076c4ba8d386890d184a7e7f0a6.zip
assign pointer NULL rather than 0
-rw-r--r--src/lib/libcrypto/asn1/tasn_prn.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/tasn_prn.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_prn.c b/src/lib/libcrypto/asn1/tasn_prn.c
index c9fde96789..c8601a1a89 100644
--- a/src/lib/libcrypto/asn1/tasn_prn.c
+++ b/src/lib/libcrypto/asn1/tasn_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_prn.c,v 1.13 2015/02/14 15:15:27 miod Exp $ */ 1/* $OpenBSD: tasn_prn.c,v 1.14 2015/12/23 01:50:26 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 2000. 3 * project 2000.
4 */ 4 */
@@ -214,7 +214,7 @@ asn1_item_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const ASN1_ITEM *it,
214 parg.pctx = pctx; 214 parg.pctx = pctx;
215 asn1_cb = aux->asn1_cb; 215 asn1_cb = aux->asn1_cb;
216 } else 216 } else
217 asn1_cb = 0; 217 asn1_cb = NULL;
218 218
219 if (*fld == NULL) { 219 if (*fld == NULL) {
220 if (pctx->flags & ASN1_PCTX_FLAGS_SHOW_ABSENT) { 220 if (pctx->flags & ASN1_PCTX_FLAGS_SHOW_ABSENT) {
diff --git a/src/lib/libssl/src/crypto/asn1/tasn_prn.c b/src/lib/libssl/src/crypto/asn1/tasn_prn.c
index c9fde96789..c8601a1a89 100644
--- a/src/lib/libssl/src/crypto/asn1/tasn_prn.c
+++ b/src/lib/libssl/src/crypto/asn1/tasn_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_prn.c,v 1.13 2015/02/14 15:15:27 miod Exp $ */ 1/* $OpenBSD: tasn_prn.c,v 1.14 2015/12/23 01:50:26 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 2000. 3 * project 2000.
4 */ 4 */
@@ -214,7 +214,7 @@ asn1_item_print_ctx(BIO *out, ASN1_VALUE **fld, int indent, const ASN1_ITEM *it,
214 parg.pctx = pctx; 214 parg.pctx = pctx;
215 asn1_cb = aux->asn1_cb; 215 asn1_cb = aux->asn1_cb;
216 } else 216 } else
217 asn1_cb = 0; 217 asn1_cb = NULL;
218 218
219 if (*fld == NULL) { 219 if (*fld == NULL) {
220 if (pctx->flags & ASN1_PCTX_FLAGS_SHOW_ABSENT) { 220 if (pctx->flags & ASN1_PCTX_FLAGS_SHOW_ABSENT) {