diff options
Diffstat (limited to 'pow/POW-0.7/POW.c')
-rw-r--r-- | pow/POW-0.7/POW.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pow/POW-0.7/POW.c b/pow/POW-0.7/POW.c index fdf3d13e..a4be59f3 100644 --- a/pow/POW-0.7/POW.c +++ b/pow/POW-0.7/POW.c @@ -4813,11 +4813,12 @@ static int ssl_object_verify_callback(X509_STORE_CTX *ctx, void *arg) if ((len = BIO_ctrl_pending(b)) == 0 || (buf = malloc(len + 1)) == NULL) goto fail; - if (BIO_read(b, buf, len) == len) + if (BIO_read(b, buf, len) == len) { buf[len] = '\0'; self->x509_cb_err = buf; - else + } else { free(buf); + } fail: BIO_free(b); |