diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/cms.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/cms.c b/src/usr.bin/openssl/cms.c index 67ce15ab56..9e955cf1ac 100644 --- a/src/usr.bin/openssl/cms.c +++ b/src/usr.bin/openssl/cms.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cms.c,v 1.25 2022/01/06 11:37:29 inoguchi Exp $ */ | 1 | /* $OpenBSD: cms.c,v 1.26 2022/01/06 11:46:05 inoguchi Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -1927,7 +1927,7 @@ static CMS_ReceiptRequest * | |||
| 1927 | make_receipt_request(STACK_OF(OPENSSL_STRING) *rr_to, int rr_allorfirst, | 1927 | make_receipt_request(STACK_OF(OPENSSL_STRING) *rr_to, int rr_allorfirst, |
| 1928 | STACK_OF(OPENSSL_STRING) *rr_from) | 1928 | STACK_OF(OPENSSL_STRING) *rr_from) |
| 1929 | { | 1929 | { |
| 1930 | STACK_OF(GENERAL_NAMES) *rct_to, *rct_from; | 1930 | STACK_OF(GENERAL_NAMES) *rct_to = NULL, *rct_from = NULL; |
| 1931 | CMS_ReceiptRequest *rr; | 1931 | CMS_ReceiptRequest *rr; |
| 1932 | 1932 | ||
| 1933 | rct_to = make_names_stack(rr_to); | 1933 | rct_to = make_names_stack(rr_to); |
| @@ -1948,6 +1948,8 @@ make_receipt_request(STACK_OF(OPENSSL_STRING) *rr_to, int rr_allorfirst, | |||
| 1948 | return rr; | 1948 | return rr; |
| 1949 | 1949 | ||
| 1950 | err: | 1950 | err: |
| 1951 | sk_GENERAL_NAMES_pop_free(rct_to, GENERAL_NAMES_free); | ||
| 1952 | sk_GENERAL_NAMES_pop_free(rct_from, GENERAL_NAMES_free); | ||
| 1951 | return NULL; | 1953 | return NULL; |
| 1952 | } | 1954 | } |
| 1953 | 1955 | ||
