diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/ocsp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c index d35940a7ae..01d28aa1f0 100644 --- a/src/usr.bin/openssl/ocsp.c +++ b/src/usr.bin/openssl/ocsp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ocsp.c,v 1.26 2024/08/31 18:39:25 tb Exp $ */ | 1 | /* $OpenBSD: ocsp.c,v 1.27 2025/05/09 12:50:59 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 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -194,18 +194,18 @@ x509v3_add_value(const char *name, const char *value, | |||
194 | int ret = 0; | 194 | int ret = 0; |
195 | 195 | ||
196 | if ((conf_value = calloc(1, sizeof(*conf_value))) == NULL) { | 196 | if ((conf_value = calloc(1, sizeof(*conf_value))) == NULL) { |
197 | X509V3error(ERR_R_MALLOC_FAILURE); | 197 | perror("calloc"); |
198 | goto err; | 198 | goto err; |
199 | } | 199 | } |
200 | if (name != NULL) { | 200 | if (name != NULL) { |
201 | if ((conf_value->name = strdup(name)) == NULL) { | 201 | if ((conf_value->name = strdup(name)) == NULL) { |
202 | X509V3error(ERR_R_MALLOC_FAILURE); | 202 | perror("strdup"); |
203 | goto err; | 203 | goto err; |
204 | } | 204 | } |
205 | } | 205 | } |
206 | if (value != NULL) { | 206 | if (value != NULL) { |
207 | if ((conf_value->value = strdup(value)) == NULL) { | 207 | if ((conf_value->value = strdup(value)) == NULL) { |
208 | X509V3error(ERR_R_MALLOC_FAILURE); | 208 | perror("strdup"); |
209 | goto err; | 209 | goto err; |
210 | } | 210 | } |
211 | } | 211 | } |
@@ -213,12 +213,12 @@ x509v3_add_value(const char *name, const char *value, | |||
213 | if ((extlist = *out_extlist) == NULL) | 213 | if ((extlist = *out_extlist) == NULL) |
214 | extlist = sk_CONF_VALUE_new_null(); | 214 | extlist = sk_CONF_VALUE_new_null(); |
215 | if (extlist == NULL) { | 215 | if (extlist == NULL) { |
216 | X509V3error(ERR_R_MALLOC_FAILURE); | 216 | perror("sk_CONF_VALUE_new_null"); |
217 | goto err; | 217 | goto err; |
218 | } | 218 | } |
219 | 219 | ||
220 | if (!sk_CONF_VALUE_push(extlist, conf_value)) { | 220 | if (!sk_CONF_VALUE_push(extlist, conf_value)) { |
221 | X509V3error(ERR_R_MALLOC_FAILURE); | 221 | perror("sk_CONF_VALUE_push"); |
222 | goto err; | 222 | goto err; |
223 | } | 223 | } |
224 | conf_value = NULL; | 224 | conf_value = NULL; |