diff options
Diffstat (limited to 'demos/bio/client-arg.c')
-rw-r--r-- | demos/bio/client-arg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/bio/client-arg.c b/demos/bio/client-arg.c index 202afa1ee8..c96e6eb08c 100644 --- a/demos/bio/client-arg.c +++ b/demos/bio/client-arg.c @@ -22,6 +22,7 @@ int main(int argc, char **argv) char **args = argv + 1; const char *connect_str = "localhost:4433"; int nargs = argc - 1; + int ret = EXIT_FAILURE; ctx = SSL_CTX_new(TLS_client_method()); cctx = SSL_CONF_CTX_new(); @@ -100,9 +101,10 @@ 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); - return 0; + return ret; } |