aboutsummaryrefslogtreecommitdiff
path: root/pow/POW-0.7/POW.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-08-25 01:01:54 +0000
committerRob Austein <sra@hactrn.net>2009-08-25 01:01:54 +0000
commita3357bb64d2bf2474be13fb68669f13672882dcf (patch)
tree8718fe717793d418b698caf40c4c43f4def72eb6 /pow/POW-0.7/POW.c
parent55842c3a643f3b2d00f01e1185372f315cb6371e (diff)
I hate switching languages in mid-thought.
svn path=/pow/POW-0.7/POW.c; revision=2709
Diffstat (limited to 'pow/POW-0.7/POW.c')
-rw-r--r--pow/POW-0.7/POW.c5
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);