Remove duplicate pointer assignment in ASN1_primitive_free(); Dirk Engling
authormiod <miod@openbsd.org>
Wed, 23 Apr 2014 19:01:50 +0000 (19:01 +0000)
committermiod <miod@openbsd.org>
Wed, 23 Apr 2014 19:01:50 +0000 (19:01 +0000)
lib/libcrypto/asn1/tasn_fre.c
lib/libssl/src/crypto/asn1/tasn_fre.c

index 9e6e757..c5e6774 100644 (file)
@@ -247,7 +247,6 @@ ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
 
        default:
                ASN1_STRING_free((ASN1_STRING *)*pval);
-               *pval = NULL;
                break;
        }
        *pval = NULL;
index 9e6e757..c5e6774 100644 (file)
@@ -247,7 +247,6 @@ ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
 
        default:
                ASN1_STRING_free((ASN1_STRING *)*pval);
-               *pval = NULL;
                break;
        }
        *pval = NULL;