The branch OpenSSL_1_1_0-stable has been updated
       via  c62ee12574e661a111238954b07ea1d5f0786bec (commit)
      from  88bf0d36048569e0dd5e6193c4ec21d2a9da5aba (commit)


- Log -----------------------------------------------------------------
commit c62ee12574e661a111238954b07ea1d5f0786bec
Author: Hikar <[email protected]>
Date:   Sat Feb 18 08:44:49 2017 +0100

    Removed ugly size_t less than zero check.
    
    CLA: trivial.
    
    Reviewed-by: Richard Levitte <[email protected]>
    Reviewed-by: Rich Salz <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/2674)
    
    (cherry picked from commit 5e1f879ab5a2bfdf2d58222f965f93fe1b511ce7)

-----------------------------------------------------------------------

Summary of changes:
 crypto/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/mem.c b/crypto/mem.c
index 02aa43a..bc35132 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -75,7 +75,7 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
     if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
         return malloc_impl(num, file, line);
 
-    if (num <= 0)
+    if (num == 0)
         return NULL;
 
     allow_customize = 0;
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to