summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-07-19 03:14:09 +0000
committerdoug <doug@openbsd.org>2015-07-19 03:14:09 +0000
commit99e8894fb9887181e3ec30c79a98f29cdf6a0fd1 (patch)
treeb83260f325baf4cd0188e0e76e632d4f6d0af34a
parentFix coverity 105339, by correctly checking return from strtoll (diff)
downloadwireguard-openbsd-99e8894fb9887181e3ec30c79a98f29cdf6a0fd1.tar.xz
wireguard-openbsd-99e8894fb9887181e3ec30c79a98f29cdf6a0fd1.zip
Free passin on error.
Fixes coverity 78826. ok miod@ bcook@
-rw-r--r--usr.bin/openssl/rsautl.c8
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);