summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_v3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c
index cc94292aa3..fcc6897378 100644
--- a/src/lib/libcrypto/x509/x509_v3.c
+++ b/src/lib/libcrypto/x509/x509_v3.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_v3.c,v 1.29 2024/05/23 01:57:32 tb Exp $ */ 1/* $OpenBSD: x509_v3.c,v 1.30 2024/05/23 02:00:38 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -187,9 +187,9 @@ X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, X509_EXTENSION *ext, int loc)
187 *x = sk; 187 *x = sk;
188 return sk; 188 return sk;
189 189
190err: 190 err:
191 X509error(ERR_R_MALLOC_FAILURE); 191 X509error(ERR_R_MALLOC_FAILURE);
192err2: 192 err2:
193 if (new_ext != NULL) 193 if (new_ext != NULL)
194 X509_EXTENSION_free(new_ext); 194 X509_EXTENSION_free(new_ext);
195 if (sk != NULL && x != NULL && sk != *x) 195 if (sk != NULL && x != NULL && sk != *x)
@@ -242,7 +242,7 @@ X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ext, const ASN1_OBJECT *obj,
242 *ext = ret; 242 *ext = ret;
243 return ret; 243 return ret;
244 244
245err: 245 err:
246 if (ext == NULL || ret != *ext) 246 if (ext == NULL || ret != *ext)
247 X509_EXTENSION_free(ret); 247 X509_EXTENSION_free(ret);
248 return NULL; 248 return NULL;