fix netbuf_getbytes prematurely returns NETBUF_EOF

Sun, 11 Aug 2024 10:09:20 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 11 Aug 2024 10:09:20 +0200
changeset 540
d9c3c23c635b
parent 539
d556b45b0d24
child 541
1e1fca11aaff

fix netbuf_getbytes prematurely returns NETBUF_EOF

src/server/util/netbuf.c file | annotate | diff | comparison | revisions
--- a/src/server/util/netbuf.c	Wed Jul 10 23:04:58 2024 +0200
+++ b/src/server/util/netbuf.c	Sun Aug 11 10:09:20 2024 +0200
@@ -141,8 +141,6 @@
 
             buf->pos += bytes_in_buffer;
             return bytes_in_buffer;
-        } else if(buf->pos >= buf->maxsize) {
-            return NETBUF_EOF;
         }
     }
     

mercurial