diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-07-19 03:14:10 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-07-19 03:14:10 +0000 |
commit | 926b4c152a4e71fe71df993e39daed080cb57b32 (patch) | |
tree | 49990b9948809217aba57dae84fab51ac0050dc8 /usr.bin | |
parent | d7cbfc28a85307035a4fac02bb8b71c0746ffb5b (diff) |
Free passin on error.
Fixes coverity 78826.
ok miod@ bcook@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/openssl/rsautl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/openssl/rsautl.c b/usr.bin/openssl/rsautl.c index 8ce3c0e27c7..d8e56a732d6 100644 --- a/usr.bin/openssl/rsautl.c +++ b/usr.bin/openssl/rsautl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsautl.c,v 1.4 2015/01/03 03:03:39 lteo Exp $ */ +/* $OpenBSD: rsautl.c,v 1.5 2015/07/19 03:14:09 doug Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -215,9 +215,9 @@ rsautl_main(int argc, char **argv) break; } - if (!pkey) { - return 1; - } + if (!pkey) + goto end; + rsa = EVP_PKEY_get1_RSA(pkey); EVP_PKEY_free(pkey); |