diff options
Diffstat (limited to 'crypto/objects/obj_lib.c')
| -rw-r--r-- | crypto/objects/obj_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/objects/obj_lib.c b/crypto/objects/obj_lib.c index adc22a10e287..d718a11e222b 100644 --- a/crypto/objects/obj_lib.c +++ b/crypto/objects/obj_lib.c @@ -1,5 +1,5 @@ /* - * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2026 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 @@ -58,5 +58,7 @@ int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b) ret = (a->length - b->length); if (ret) return ret; + if (a->length == 0) + return 0; return memcmp(a->data, b->data, a->length); } |
