net: tcp: Handle reseqs of length 0
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Nov 2017 20:24:13 +0000 (15:24 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Nov 2017 20:24:13 +0000 (15:24 -0500)
commit770ca98bc691184891986107542ed584cb0f0dc5
tree53f416010f9f67b5873e8123635f0b8f1bed5109
parent734fb3e242e2ad6c1079c640525ed6e02f2b9d62
net: tcp: Handle reseqs of length 0

The SACK code was panicking, but it is possible to have length = 0 (on a
SYN or FIN).  We can just ignore any potential SACK updates in those
cases.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/tcp.c