aboutsummaryrefslogtreecommitdiff
path: root/apps/lib/names.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/lib/names.c')
-rw-r--r--apps/lib/names.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/lib/names.c b/apps/lib/names.c
index 4788ae84b915..8825dfa3d895 100644
--- a/apps/lib/names.c
+++ b/apps/lib/names.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -11,7 +11,7 @@
#include <openssl/bio.h>
#include <openssl/safestack.h>
#include "names.h"
-#include "openssl/crypto.h"
+#include "internal/e_os.h"
int name_cmp(const char * const *a, const char * const *b)
{
@@ -22,7 +22,8 @@ void collect_names(const char *name, void *vdata)
{
STACK_OF(OPENSSL_CSTRING) *names = vdata;
- sk_OPENSSL_CSTRING_push(names, name);
+ /* A failure to push cannot be handled so we ignore the result. */
+ (void)sk_OPENSSL_CSTRING_push(names, name);
}
void print_names(BIO *out, STACK_OF(OPENSSL_CSTRING) *names)