svcrpc: close connection if client sends short packet
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 14 Feb 2011 20:03:35 +0000 (15:03 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 7 Apr 2011 18:36:40 +0000 (14:36 -0400)
If the client sents a record too short to contain even the beginning of
the rpc header, then just close the connection.

The current code drops the record data and continues.  I don't see the
point.  It's a hopeless situation and simpler just to cut off the
connection completely.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found