summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_rsp_verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ts/ts_rsp_verify.c')
-rw-r--r--src/lib/libcrypto/ts/ts_rsp_verify.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_verify.c b/src/lib/libcrypto/ts/ts_rsp_verify.c
index f241230ef4..d51500b5d4 100644
--- a/src/lib/libcrypto/ts/ts_rsp_verify.c
+++ b/src/lib/libcrypto/ts/ts_rsp_verify.c
@@ -472,7 +472,7 @@ static int int_TS_RESP_verify_token(TS_VERIFY_CTX *ctx,
472 err: 472 err:
473 X509_free(signer); 473 X509_free(signer);
474 X509_ALGOR_free(md_alg); 474 X509_ALGOR_free(md_alg);
475 OPENSSL_free(imprint); 475 free(imprint);
476 return ret; 476 return ret;
477 } 477 }
478 478
@@ -528,7 +528,7 @@ static int TS_check_status_info(TS_RESP *response)
528 ", status text: ", embedded_status_text ? 528 ", status text: ", embedded_status_text ?
529 embedded_status_text : "unspecified", 529 embedded_status_text : "unspecified",
530 ", failure codes: ", failure_text); 530 ", failure codes: ", failure_text);
531 OPENSSL_free(embedded_status_text); 531 free(embedded_status_text);
532 532
533 return 0; 533 return 0;
534 } 534 }
@@ -547,7 +547,7 @@ static char *TS_get_status_text(STACK_OF(ASN1_UTF8STRING) *text)
547 length += 1; /* separator character */ 547 length += 1; /* separator character */
548 } 548 }
549 /* Allocate memory (closing '\0' included). */ 549 /* Allocate memory (closing '\0' included). */
550 if (!(result = OPENSSL_malloc(length))) 550 if (!(result = malloc(length)))
551 { 551 {
552 TSerr(TS_F_TS_GET_STATUS_TEXT, ERR_R_MALLOC_FAILURE); 552 TSerr(TS_F_TS_GET_STATUS_TEXT, ERR_R_MALLOC_FAILURE);
553 return NULL; 553 return NULL;
@@ -606,7 +606,7 @@ static int TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info,
606 if (length < 0) 606 if (length < 0)
607 goto err; 607 goto err;
608 *imprint_len = length; 608 *imprint_len = length;
609 if (!(*imprint = OPENSSL_malloc(*imprint_len))) 609 if (!(*imprint = malloc(*imprint_len)))
610 { 610 {
611 TSerr(TS_F_TS_COMPUTE_IMPRINT, ERR_R_MALLOC_FAILURE); 611 TSerr(TS_F_TS_COMPUTE_IMPRINT, ERR_R_MALLOC_FAILURE);
612 goto err; 612 goto err;
@@ -625,7 +625,7 @@ static int TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info,
625 return 1; 625 return 1;
626 err: 626 err:
627 X509_ALGOR_free(*md_alg); 627 X509_ALGOR_free(*md_alg);
628 OPENSSL_free(*imprint); 628 free(*imprint);
629 *imprint_len = 0; 629 *imprint_len = 0;
630 return 0; 630 return 0;
631 } 631 }