Browse Source

socket_read_line(): reset buffer offset when no bytes are left

socket_read() already did that.
wip/maildir-path-under-inbox
Oswald Buddenhagen 3 years ago
parent
commit
6f15980cd9
  1. 2
      src/socket.c

2
src/socket.c

@ -834,7 +834,7 @@ socket_read_line( conn_t *conn )
}
uint n = (uint)(p + 1 - s);
cnt -= n;
conn->offset = off + n;
conn->offset = cnt ? off + n : 0;
conn->bytes = cnt;
conn->scanoff = 0;
if (p != s && p[-1] == '\r')

Loading…
Cancel
Save