diff options
author | 2015-07-16 15:03:35 +0000 | |
---|---|---|
committer | 2015-07-16 15:03:35 +0000 | |
commit | 5edcce77330e4681be4ba83e9c3a6ebd263e4a66 (patch) | |
tree | 226d5d39e07caf5579be07333d46525b1664fb1a | |
parent | Adapt previous to extended-precision, and fix single-precision constants. (diff) | |
download | wireguard-openbsd-5edcce77330e4681be4ba83e9c3a6ebd263e4a66.tar.xz wireguard-openbsd-5edcce77330e4681be4ba83e9c3a6ebd263e4a66.zip |
kill leak, found by coverity, ID 105348
ok miod@
-rw-r--r-- | usr.bin/openssl/apps.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/openssl/apps.c b/usr.bin/openssl/apps.c index 586b3c624aa..16b76ae346f 100644 --- a/usr.bin/openssl/apps.c +++ b/usr.bin/openssl/apps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apps.c,v 1.28 2015/07/15 13:54:34 jsing Exp $ */ +/* $OpenBSD: apps.c,v 1.29 2015/07/16 15:03:35 beck Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -2027,8 +2027,10 @@ args_verify(char ***pargs, int *pargc, int *badarg, BIO *err, *badarg = 1; goto end; } - if (otmp) + if (otmp) { X509_VERIFY_PARAM_add0_policy(*pm, otmp); + otmp = NULL; + } if (flags) X509_VERIFY_PARAM_set_flags(*pm, flags); @@ -2047,6 +2049,7 @@ end: if (pargc) *pargc -= *pargs - oldargs; + ASN1_OBJECT_free(otmp); return 1; } |