From 9ebbaba8a118c8ecb043c03b843e016523c952b5 Mon Sep 17 00:00:00 2001 From: tedu Date: Sat, 19 Apr 2014 16:12:39 +0000 Subject: [PATCH] can't actually do this. cause unknown. --- lib/libcrypto/asn1/tasn_dec.c | 2 +- lib/libssl/src/crypto/asn1/tasn_dec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/asn1/tasn_dec.c b/lib/libcrypto/asn1/tasn_dec.c index be37ac0c966..66f039806e9 100644 --- a/lib/libcrypto/asn1/tasn_dec.c +++ b/lib/libcrypto/asn1/tasn_dec.c @@ -173,7 +173,7 @@ ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, return 0; /* always start fresh */ - if (*pval) { + if (0 && *pval) { ASN1_item_ex_free(pval, it); *pval = NULL; } diff --git a/lib/libssl/src/crypto/asn1/tasn_dec.c b/lib/libssl/src/crypto/asn1/tasn_dec.c index be37ac0c966..66f039806e9 100644 --- a/lib/libssl/src/crypto/asn1/tasn_dec.c +++ b/lib/libssl/src/crypto/asn1/tasn_dec.c @@ -173,7 +173,7 @@ ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, return 0; /* always start fresh */ - if (*pval) { + if (0 && *pval) { ASN1_item_ex_free(pval, it); *pval = NULL; } -- 2.20.1