diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-05-20 23:36:18 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-05-21 08:58:27 -0400 |
commit | 8bf780432c11bcedf20161f5e76bc19e300af419 (patch) | |
tree | 4f04c0e5f6cdeb015b540ff78e9b7858162e8166 /apps/srp.c | |
parent | 6aa36e8e5a062e31543e7796f0351ff9628832ce (diff) |
Indent and dead code cleanup
tofree pointer is no more used...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1103)
Diffstat (limited to 'apps/srp.c')
-rw-r--r-- | apps/srp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/srp.c b/apps/srp.c index cbbaae4cec..d81346d2d7 100644 --- a/apps/srp.c +++ b/apps/srp.c @@ -212,7 +212,7 @@ int srp_main(int argc, char **argv) int doupdatedb = 0, mode = OPT_ERR; char *user = NULL, *passinarg = NULL, *passoutarg = NULL; char *passin = NULL, *passout = NULL, *gN = NULL, *userinfo = NULL; - char *randfile = NULL, *tofree = NULL, *section = NULL; + char *randfile = NULL, *section = NULL; char **gNrow = NULL, *configfile = NULL; char *srpvfile = NULL, **pp, *prog; OPTION_CHOICE o; @@ -596,7 +596,7 @@ int srp_main(int argc, char **argv) if (verbose) BIO_printf(bio_err, "SRP terminating with code %d.\n", ret); - OPENSSL_free(tofree); + if (ret) ERR_print_errors(bio_err); if (randfile) |