diff options
Diffstat (limited to 'demos/bio/sconnect.c')
-rw-r--r-- | demos/bio/sconnect.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/demos/bio/sconnect.c b/demos/bio/sconnect.c index 73280b576a..6e4ca6596b 100644 --- a/demos/bio/sconnect.c +++ b/demos/bio/sconnect.c @@ -96,17 +96,16 @@ char *argv[]; } ret = 1; + goto done; - if (0) { err: - if (ERR_peek_error() == 0) { /* system call error */ - fprintf(stderr, "errno=%d ", errno); - perror("error"); - } else - ERR_print_errors_fp(stderr); - } + if (ERR_peek_error() == 0) { /* system call error */ + fprintf(stderr, "errno=%d ", errno); + perror("error"); + } else + ERR_print_errors_fp(stderr); + done: BIO_free_all(out); SSL_CTX_free(ssl_ctx); - exit(!ret); - return (ret); + return (ret == 1); } |