gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] branch master updated: memorypool: removed


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: memorypool: removed redundant check, which also fails in case shrinking
Date: Thu, 13 Jun 2019 12:38:39 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new b9cba520 memorypool: removed redundant check, which also fails in case 
shrinking
b9cba520 is described below

commit b9cba520417ae7b01bbd59b16a4b180eab3338ae
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Jun 13 13:36:45 2019 +0300

    memorypool: removed redundant check, which also fails in case shrinking
---
 src/microhttpd/memorypool.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index c7541cda..12a22f22 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -277,8 +277,7 @@ MHD_pool_reallocate (struct MemoryPool *pool,
       if (pool->pos == ROUND_TO_ALIGN (old_offset + old_size))
         { /* "old" block is the last allocated block */
           const size_t new_apos = ROUND_TO_ALIGN (old_offset + new_size);
-          if ( (new_apos > pool->end) ||
-               (new_apos < pool->pos) ) /* Value wrap */
+          if (new_apos > pool->end)
             return NULL; /* No space */
 
           pool->pos = new_apos;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]