]> diplodocus.org Git - nmh/commit
Move the read buffer shuffling to BEFORE where we call the network
authorKen Hornstein <kenh@pobox.com>
Sun, 2 Oct 2016 05:47:15 +0000 (01:47 -0400)
committerKen Hornstein <kenh@pobox.com>
Sun, 2 Oct 2016 05:47:15 +0000 (01:47 -0400)
commitadbe6be189faa6fb70a955b36593d6bc840a3695
treee82395def359b584d01b731402f196024760012f
parentd3ecbe4bae7a3f1972b553d4b1efab3079ef0bae
Move the read buffer shuffling to BEFORE where we call the network
read routines; otherwise we can end up calling the lower layers with
a length of zero, which messes everything up.

Also make sure we reshuffle our pointers around if that happens.
sbr/netsec.c