diff options
Diffstat (limited to 'src/usr.bin/openssl/certhash.c')
-rw-r--r-- | src/usr.bin/openssl/certhash.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c index fdd719ea48..5838f0209b 100644 --- a/src/usr.bin/openssl/certhash.c +++ b/src/usr.bin/openssl/certhash.c | |||
@@ -285,11 +285,11 @@ hashinfo_from_linkname(const char *linkname, const char *target) | |||
285 | 285 | ||
286 | goto done; | 286 | goto done; |
287 | 287 | ||
288 | err: | 288 | err: |
289 | hashinfo_free(hi); | 289 | hashinfo_free(hi); |
290 | hi = NULL; | 290 | hi = NULL; |
291 | 291 | ||
292 | done: | 292 | done: |
293 | free(l); | 293 | free(l); |
294 | 294 | ||
295 | return (hi); | 295 | return (hi); |
@@ -318,7 +318,7 @@ certhash_cert(BIO *bio, const char *filename) | |||
318 | 318 | ||
319 | hi = hashinfo(filename, hash, fingerprint); | 319 | hi = hashinfo(filename, hash, fingerprint); |
320 | 320 | ||
321 | err: | 321 | err: |
322 | X509_free(cert); | 322 | X509_free(cert); |
323 | 323 | ||
324 | return (hi); | 324 | return (hi); |
@@ -347,7 +347,7 @@ certhash_crl(BIO *bio, const char *filename) | |||
347 | 347 | ||
348 | hi = hashinfo(filename, hash, fingerprint); | 348 | hi = hashinfo(filename, hash, fingerprint); |
349 | 349 | ||
350 | err: | 350 | err: |
351 | X509_CRL_free(crl); | 351 | X509_CRL_free(crl); |
352 | 352 | ||
353 | return (hi); | 353 | return (hi); |
@@ -371,7 +371,7 @@ certhash_addlink(struct hashinfo **links, struct hashinfo *hi) | |||
371 | 371 | ||
372 | return (0); | 372 | return (0); |
373 | 373 | ||
374 | err: | 374 | err: |
375 | hashinfo_free(link); | 375 | hashinfo_free(link); |
376 | return (-1); | 376 | return (-1); |
377 | } | 377 | } |
@@ -545,7 +545,7 @@ certhash_file(struct dirent *dep, struct hashinfo **certs, | |||
545 | 545 | ||
546 | ret = 0; | 546 | ret = 0; |
547 | 547 | ||
548 | err: | 548 | err: |
549 | BIO_free(bio); | 549 | BIO_free(bio); |
550 | 550 | ||
551 | return (ret); | 551 | return (ret); |
@@ -622,10 +622,10 @@ certhash_directory(const char *path) | |||
622 | 622 | ||
623 | goto done; | 623 | goto done; |
624 | 624 | ||
625 | err: | 625 | err: |
626 | ret = 1; | 626 | ret = 1; |
627 | 627 | ||
628 | done: | 628 | done: |
629 | hashinfo_chain_free(certs); | 629 | hashinfo_chain_free(certs); |
630 | hashinfo_chain_free(crls); | 630 | hashinfo_chain_free(crls); |
631 | hashinfo_chain_free(links); | 631 | hashinfo_chain_free(links); |