diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/apps.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/apps.c b/src/usr.bin/openssl/apps.c index 586b3c624a..16b76ae346 100644 --- a/src/usr.bin/openssl/apps.c +++ b/src/usr.bin/openssl/apps.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: apps.c,v 1.28 2015/07/15 13:54:34 jsing Exp $ */ | 1 | /* $OpenBSD: apps.c,v 1.29 2015/07/16 15:03:35 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -2027,8 +2027,10 @@ args_verify(char ***pargs, int *pargc, int *badarg, BIO *err, | |||
2027 | *badarg = 1; | 2027 | *badarg = 1; |
2028 | goto end; | 2028 | goto end; |
2029 | } | 2029 | } |
2030 | if (otmp) | 2030 | if (otmp) { |
2031 | X509_VERIFY_PARAM_add0_policy(*pm, otmp); | 2031 | X509_VERIFY_PARAM_add0_policy(*pm, otmp); |
2032 | otmp = NULL; | ||
2033 | } | ||
2032 | if (flags) | 2034 | if (flags) |
2033 | X509_VERIFY_PARAM_set_flags(*pm, flags); | 2035 | X509_VERIFY_PARAM_set_flags(*pm, flags); |
2034 | 2036 | ||
@@ -2047,6 +2049,7 @@ end: | |||
2047 | if (pargc) | 2049 | if (pargc) |
2048 | *pargc -= *pargs - oldargs; | 2050 | *pargc -= *pargs - oldargs; |
2049 | 2051 | ||
2052 | ASN1_OBJECT_free(otmp); | ||
2050 | return 1; | 2053 | return 1; |
2051 | } | 2054 | } |
2052 | 2055 | ||