diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_cmp.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_cmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_cmp.c b/src/lib/libcrypto/x509/x509_cmp.c index 030e29bde7..407e1e07ad 100644 --- a/src/lib/libcrypto/x509/x509_cmp.c +++ b/src/lib/libcrypto/x509/x509_cmp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_cmp.c,v 1.25 2014/09/26 19:31:09 miod Exp $ */ | 1 | /* $OpenBSD: x509_cmp.c,v 1.26 2015/07/29 14:58:34 jsing 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 | * |
@@ -76,7 +76,7 @@ X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) | |||
76 | 76 | ||
77 | ai = a->cert_info; | 77 | ai = a->cert_info; |
78 | bi = b->cert_info; | 78 | bi = b->cert_info; |
79 | i = M_ASN1_INTEGER_cmp(ai->serialNumber, bi->serialNumber); | 79 | i = ASN1_STRING_cmp(ai->serialNumber, bi->serialNumber); |
80 | if (i) | 80 | if (i) |
81 | return (i); | 81 | return (i); |
82 | return (X509_NAME_cmp(ai->issuer, bi->issuer)); | 82 | return (X509_NAME_cmp(ai->issuer, bi->issuer)); |