Make sure that bs is not getting free'd again.
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Jun 2000 11:10:15 +0000 (11:10 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Jun 2000 11:10:15 +0000 (11:10 +0000)
Reported by Robert Eiglmaier <robert.eiglmaier@ixos.de>

crypto/asn1/d2i_s_pr.c

index dec2a2e..55d5802 100644 (file)
@@ -92,6 +92,7 @@ DSA *d2i_DSAPrivateKey(DSA **a, unsigned char **pp, long length)
                == NULL) goto err_bn;
 
        M_ASN1_INTEGER_free(bs);
                == NULL) goto err_bn;
 
        M_ASN1_INTEGER_free(bs);
+       bs = NULL;
 
        M_ASN1_D2I_Finish_2(a);
 err_bn:
 
        M_ASN1_D2I_Finish_2(a);
 err_bn: