Commit 16ba7074 authored by David Ramos's avatar David Ramos Committed by Matt Caswell
Browse files

Double free in i2o_ECPublicKey

PR: 3338
parent da12bfca
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1435,8 +1435,11 @@ int i2o_ECPublicKey(EC_KEY *a, unsigned char **out)
				*out, buf_len, NULL))
		{
		ECerr(EC_F_I2O_ECPUBLICKEY, ERR_R_EC_LIB);
		if (new_buffer)
			{
			OPENSSL_free(*out);
			*out = NULL;
			}
		return 0;
		}
	if (!new_buffer)