Skip to content

Commit

Permalink
Fix return value of BIO_free
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#16682)
  • Loading branch information
PeiweiHu authored and paulidale committed Sep 28, 2021
1 parent 9efdf4a commit d8f6c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bio/bio_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int BIO_free(BIO *a)
if (HAS_CALLBACK(a)) {
ret = (int)bio_call_callback(a, BIO_CB_FREE, NULL, 0, 0, 0L, 1L, NULL);
if (ret <= 0)
return ret;
return 0;
}

if ((a->method != NULL) && (a->method->destroy != NULL))
Expand Down

0 comments on commit d8f6c53

Please sign in to comment.