diff options
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_ht.c')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_ht.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c index af5fc16691..17b252d6a8 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ht.c +++ b/src/lib/libcrypto/ocsp/ocsp_ht.c | |||
@@ -114,8 +114,8 @@ void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx) | |||
114 | if (rctx->mem) | 114 | if (rctx->mem) |
115 | BIO_free(rctx->mem); | 115 | BIO_free(rctx->mem); |
116 | if (rctx->iobuf) | 116 | if (rctx->iobuf) |
117 | OPENSSL_free(rctx->iobuf); | 117 | free(rctx->iobuf); |
118 | OPENSSL_free(rctx); | 118 | free(rctx); |
119 | } | 119 | } |
120 | 120 | ||
121 | int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req) | 121 | int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req) |
@@ -157,7 +157,7 @@ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, | |||
157 | static const char post_hdr[] = "POST %s HTTP/1.0\r\n"; | 157 | static const char post_hdr[] = "POST %s HTTP/1.0\r\n"; |
158 | 158 | ||
159 | OCSP_REQ_CTX *rctx; | 159 | OCSP_REQ_CTX *rctx; |
160 | rctx = OPENSSL_malloc(sizeof(OCSP_REQ_CTX)); | 160 | rctx = malloc(sizeof(OCSP_REQ_CTX)); |
161 | rctx->state = OHS_ERROR; | 161 | rctx->state = OHS_ERROR; |
162 | rctx->mem = BIO_new(BIO_s_mem()); | 162 | rctx->mem = BIO_new(BIO_s_mem()); |
163 | rctx->io = io; | 163 | rctx->io = io; |
@@ -166,7 +166,7 @@ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, | |||
166 | rctx->iobuflen = maxline; | 166 | rctx->iobuflen = maxline; |
167 | else | 167 | else |
168 | rctx->iobuflen = OCSP_MAX_LINE_LEN; | 168 | rctx->iobuflen = OCSP_MAX_LINE_LEN; |
169 | rctx->iobuf = OPENSSL_malloc(rctx->iobuflen); | 169 | rctx->iobuf = malloc(rctx->iobuflen); |
170 | if (!rctx->iobuf) | 170 | if (!rctx->iobuf) |
171 | return 0; | 171 | return 0; |
172 | if (!path) | 172 | if (!path) |