diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/bio_asn1.c')
-rw-r--r-- | src/lib/libcrypto/asn1/bio_asn1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/bio_asn1.c b/src/lib/libcrypto/asn1/bio_asn1.c index dc7efd551c..fa98dba728 100644 --- a/src/lib/libcrypto/asn1/bio_asn1.c +++ b/src/lib/libcrypto/asn1/bio_asn1.c | |||
@@ -150,7 +150,7 @@ BIO_METHOD *BIO_f_asn1(void) | |||
150 | static int asn1_bio_new(BIO *b) | 150 | static int asn1_bio_new(BIO *b) |
151 | { | 151 | { |
152 | BIO_ASN1_BUF_CTX *ctx; | 152 | BIO_ASN1_BUF_CTX *ctx; |
153 | ctx = OPENSSL_malloc(sizeof(BIO_ASN1_BUF_CTX)); | 153 | ctx = malloc(sizeof(BIO_ASN1_BUF_CTX)); |
154 | if (!ctx) | 154 | if (!ctx) |
155 | return 0; | 155 | return 0; |
156 | if (!asn1_bio_init(ctx, DEFAULT_ASN1_BUF_SIZE)) | 156 | if (!asn1_bio_init(ctx, DEFAULT_ASN1_BUF_SIZE)) |
@@ -163,7 +163,7 @@ static int asn1_bio_new(BIO *b) | |||
163 | 163 | ||
164 | static int asn1_bio_init(BIO_ASN1_BUF_CTX *ctx, int size) | 164 | static int asn1_bio_init(BIO_ASN1_BUF_CTX *ctx, int size) |
165 | { | 165 | { |
166 | ctx->buf = OPENSSL_malloc(size); | 166 | ctx->buf = malloc(size); |
167 | if (!ctx->buf) | 167 | if (!ctx->buf) |
168 | return 0; | 168 | return 0; |
169 | ctx->bufsize = size; | 169 | ctx->bufsize = size; |
@@ -186,8 +186,8 @@ static int asn1_bio_free(BIO *b) | |||
186 | if (ctx == NULL) | 186 | if (ctx == NULL) |
187 | return 0; | 187 | return 0; |
188 | if (ctx->buf) | 188 | if (ctx->buf) |
189 | OPENSSL_free(ctx->buf); | 189 | free(ctx->buf); |
190 | OPENSSL_free(ctx); | 190 | free(ctx); |
191 | b->init = 0; | 191 | b->init = 0; |
192 | b->ptr = NULL; | 192 | b->ptr = NULL; |
193 | b->flags = 0; | 193 | b->flags = 0; |