summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_name.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/asn1/x_name.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/x_name.c b/src/lib/libcrypto/asn1/x_name.c
index 7bacd83340..09536666fc 100644
--- a/src/lib/libcrypto/asn1/x_name.c
+++ b/src/lib/libcrypto/asn1/x_name.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_name.c,v 1.44 2024/07/08 14:48:49 beck Exp $ */ 1/* $OpenBSD: x_name.c,v 1.46 2025/05/10 05:54: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 *
@@ -61,10 +61,10 @@
61#include <string.h> 61#include <string.h>
62 62
63#include <openssl/asn1t.h> 63#include <openssl/asn1t.h>
64#include <openssl/err.h>
65#include <openssl/x509.h> 64#include <openssl/x509.h>
66 65
67#include "asn1_local.h" 66#include "asn1_local.h"
67#include "err_local.h"
68#include "x509_local.h" 68#include "x509_local.h"
69 69
70typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY; 70typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY;
@@ -414,8 +414,10 @@ x509_name_encode(X509_NAME *a)
414 if (!entries) 414 if (!entries)
415 goto memerr; 415 goto memerr;
416 if (!sk_STACK_OF_X509_NAME_ENTRY_push(intname.s, 416 if (!sk_STACK_OF_X509_NAME_ENTRY_push(intname.s,
417 entries)) 417 entries)) {
418 sk_X509_NAME_ENTRY_free(entries);
418 goto memerr; 419 goto memerr;
420 }
419 set = entry->set; 421 set = entry->set;
420 } 422 }
421 if (entries == NULL /* if entry->set is bogusly -1 */ || 423 if (entries == NULL /* if entry->set is bogusly -1 */ ||