diff options
author | tb <> | 2024-03-28 00:44:26 +0000 |
---|---|---|
committer | tb <> | 2024-03-28 00:44:26 +0000 |
commit | 42316c1dc80a6f1db19190710c01551d8e11cab7 (patch) | |
tree | 72f9acca45601e966e763f7bfa2f876475117553 /src | |
parent | 530c97f22c645521413a86aa2dc6a5dd8354200d (diff) | |
download | openbsd-42316c1dc80a6f1db19190710c01551d8e11cab7.tar.gz openbsd-42316c1dc80a6f1db19190710c01551d8e11cab7.tar.bz2 openbsd-42316c1dc80a6f1db19190710c01551d8e11cab7.zip |
PKCS#1.5 PBE: test and assign
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/p5_pbe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/p5_pbe.c b/src/lib/libcrypto/asn1/p5_pbe.c index 0b628b36d9..94daf3bedf 100644 --- a/src/lib/libcrypto/asn1/p5_pbe.c +++ b/src/lib/libcrypto/asn1/p5_pbe.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p5_pbe.c,v 1.26 2024/03/02 10:17:37 tb Exp $ */ | 1 | /* $OpenBSD: p5_pbe.c,v 1.27 2024/03/28 00:44:26 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -127,8 +127,7 @@ PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, | |||
127 | ASN1_STRING *pbe_str = NULL; | 127 | ASN1_STRING *pbe_str = NULL; |
128 | unsigned char *sstr; | 128 | unsigned char *sstr; |
129 | 129 | ||
130 | pbe = PBEPARAM_new(); | 130 | if ((pbe = PBEPARAM_new()) == NULL) { |
131 | if (!pbe) { | ||
132 | ASN1error(ERR_R_MALLOC_FAILURE); | 131 | ASN1error(ERR_R_MALLOC_FAILURE); |
133 | goto err; | 132 | goto err; |
134 | } | 133 | } |