summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/t_x509.c')
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index bbf00c7a29..8dfda07b92 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -239,7 +239,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
239 } 239 }
240 ret=1; 240 ret=1;
241err: 241err:
242 if (m != NULL) OPENSSL_free(m); 242 if (m != NULL) free(m);
243 return(ret); 243 return(ret);
244 } 244 }
245 245
@@ -256,7 +256,7 @@ int X509_ocspid_print (BIO *bp, X509 *x)
256 if (BIO_printf(bp," Subject OCSP hash: ") <= 0) 256 if (BIO_printf(bp," Subject OCSP hash: ") <= 0)
257 goto err; 257 goto err;
258 derlen = i2d_X509_NAME(x->cert_info->subject, NULL); 258 derlen = i2d_X509_NAME(x->cert_info->subject, NULL);
259 if ((der = dertmp = (unsigned char *)OPENSSL_malloc (derlen)) == NULL) 259 if ((der = dertmp = (unsigned char *)malloc (derlen)) == NULL)
260 goto err; 260 goto err;
261 i2d_X509_NAME(x->cert_info->subject, &dertmp); 261 i2d_X509_NAME(x->cert_info->subject, &dertmp);
262 262
@@ -266,7 +266,7 @@ int X509_ocspid_print (BIO *bp, X509 *x)
266 { 266 {
267 if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0) goto err; 267 if (BIO_printf(bp,"%02X",SHA1md[i]) <= 0) goto err;
268 } 268 }
269 OPENSSL_free (der); 269 free (der);
270 der=NULL; 270 der=NULL;
271 271
272 /* display the hash of the public key as it would appear 272 /* display the hash of the public key as it would appear
@@ -287,7 +287,7 @@ int X509_ocspid_print (BIO *bp, X509 *x)
287 287
288 return (1); 288 return (1);
289err: 289err:
290 if (der != NULL) OPENSSL_free(der); 290 if (der != NULL) free(der);
291 return(0); 291 return(0);
292 } 292 }
293 293
@@ -477,7 +477,7 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
477 b=X509_NAME_oneline(name,NULL,0); 477 b=X509_NAME_oneline(name,NULL,0);
478 if (!*b) 478 if (!*b)
479 { 479 {
480 OPENSSL_free(b); 480 free(b);
481 return 1; 481 return 1;
482 } 482 }
483 s=b+1; /* skip the first slash */ 483 s=b+1; /* skip the first slash */
@@ -513,6 +513,6 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
513err: 513err:
514 X509err(X509_F_X509_NAME_PRINT,ERR_R_BUF_LIB); 514 X509err(X509_F_X509_NAME_PRINT,ERR_R_BUF_LIB);
515 } 515 }
516 OPENSSL_free(b); 516 free(b);
517 return(ret); 517 return(ret);
518 } 518 }