diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_addr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c index ef2f7e0889..c48a0ab118 100644 --- a/src/lib/libcrypto/x509/x509_addr.c +++ b/src/lib/libcrypto/x509/x509_addr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_addr.c,v 1.95 2026/04/26 17:58:58 tb Exp $ */ | 1 | /* $OpenBSD: x509_addr.c,v 1.96 2026/05/18 04:24:01 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Contributed to the OpenSSL Project by the American Registry for | 3 | * Contributed to the OpenSSL Project by the American Registry for |
| 4 | * Internet Numbers ("ARIN"). | 4 | * Internet Numbers ("ARIN"). |
| @@ -504,10 +504,10 @@ IPAddressFamily_cmp(const IPAddressFamily *const *a_, | |||
| 504 | const ASN1_OCTET_STRING *b = (*b_)->addressFamily; | 504 | const ASN1_OCTET_STRING *b = (*b_)->addressFamily; |
| 505 | int len, cmp; | 505 | int len, cmp; |
| 506 | 506 | ||
| 507 | len = MINIMUM(a->length, b->length); | 507 | if ((len = MINIMUM(a->length, b->length)) != 0) { |
| 508 | 508 | if ((cmp = memcmp(a->data, b->data, len)) != 0) | |
| 509 | if ((cmp = memcmp(a->data, b->data, len)) != 0) | 509 | return cmp; |
| 510 | return cmp; | 510 | } |
| 511 | 511 | ||
| 512 | return a->length - b->length; | 512 | return a->length - b->length; |
| 513 | } | 513 | } |
