summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_genn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_genn.c b/src/lib/libcrypto/x509/x509_genn.c
index ce1fb6cc02..395d487f8f 100644
--- a/src/lib/libcrypto/x509/x509_genn.c
+++ b/src/lib/libcrypto/x509/x509_genn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_genn.c,v 1.3 2022/11/14 17:48:50 beck Exp $ */ 1/* $OpenBSD: x509_genn.c,v 1.4 2023/02/07 15:46:58 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 */
@@ -383,7 +383,8 @@ GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b)
383 return -1; 383 return -1;
384 switch (a->type) { 384 switch (a->type) {
385 case GEN_X400: 385 case GEN_X400:
386 result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); 386 result = ASN1_STRING_cmp((ASN1_STRING *)a->d.x400Address,
387 (ASN1_STRING *)b->d.x400Address);
387 break; 388 break;
388 389
389 case GEN_EDIPARTY: 390 case GEN_EDIPARTY: