Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crypto/ocsp/ocsp_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
*phost = NULL;
*pport = NULL;
*ppath = NULL;
*pssl = 0;
Comment thread
justsmth marked this conversation as resolved.

// Duplicate into the buffer since the contents are going to be changed.
buffer = OPENSSL_strdup(url);
Expand Down Expand Up @@ -232,6 +233,7 @@ int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
OPENSSL_free(buffer);
OPENSSL_free(*ppath);
*ppath = NULL;
*pssl = 0;
OPENSSL_free(*pport);
*pport = NULL;
OPENSSL_free(*phost);
Expand Down
1 change: 1 addition & 0 deletions crypto/ocsp/ocsp_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,7 @@ TEST_P(OCSPURLTest, OCSPParseURL) {
EXPECT_FALSE(host);
EXPECT_FALSE(port);
EXPECT_FALSE(path);
EXPECT_EQ(is_ssl, 0);
}
}

Expand Down
5 changes: 4 additions & 1 deletion crypto/pkcs7/pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
}
xalg->parameter->type = V_ASN1_OCTET_STRING;
xalg->parameter->value.octet_string = ASN1_OCTET_STRING_new();
if (xalg->parameter->value.octet_string == NULL) {
goto err;
}
// Set |p7|'s parameter value to the IV
if (!ASN1_OCTET_STRING_set(xalg->parameter->value.octet_string, iv,
ivlen)) {
Expand Down Expand Up @@ -1595,7 +1598,7 @@ static int pkcs7_signature_verify(BIO *in_bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
goto out;
}
if (message_digest->length != (int)md_len ||
OPENSSL_memcmp(message_digest->data, md_data, md_len) != 0) {
CRYPTO_memcmp(message_digest->data, md_data, md_len) != 0) {
OPENSSL_PUT_ERROR(PKCS7, PKCS7_R_DIGEST_FAILURE);
goto out;
}
Expand Down
Loading