summaryrefslogtreecommitdiffstats
path: root/demos/bio/client-conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/bio/client-conf.c')
-rw-r--r--demos/bio/client-conf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/bio/client-conf.c b/demos/bio/client-conf.c
index 916876bfab..b8bb6819b9 100644
--- a/demos/bio/client-conf.c
+++ b/demos/bio/client-conf.c
@@ -25,6 +25,7 @@ int main(int argc, char **argv)
CONF_VALUE *cnf;
const char *connect_str = "localhost:4433";
long errline = -1;
+ int ret = EXIT_FAILURE;
conf = NCONF_new(NULL);
@@ -108,10 +109,12 @@ int main(int argc, char **argv)
break;
BIO_write(out, tmpbuf, len);
}
+ ret = EXIT_SUCCESS;
+
end:
SSL_CONF_CTX_free(cctx);
BIO_free_all(sbio);
BIO_free(out);
NCONF_free(conf);
- return 0;
+ return ret;
}