diff options
Diffstat (limited to 'crypto/property')
-rw-r--r-- | crypto/property/property_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/property/property_parse.c b/crypto/property/property_parse.c index 2094d38e88..074da51c6b 100644 --- a/crypto/property/property_parse.c +++ b/crypto/property/property_parse.c @@ -301,7 +301,7 @@ static OSSL_PROPERTY_LIST *stack_to_property_list(STACK_OF(PROPERTY_DEFINITION) int i; r = OPENSSL_malloc(sizeof(*r) - + (n == 0 ? 0 : n - 1) * sizeof(r->properties[0])); + + (n <= 0 ? 0 : n - 1) * sizeof(r->properties[0])); if (r != NULL) { sk_PROPERTY_DEFINITION_sort(sk); |