]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitcc6c2127f2316c2b2ad1e8919b45cde5e03f65aa
treed75c2fe1f4e0be7756b0277e9c707b5dc03c9912
parent48e6555c7b3bf0d92f8167d8b8b8ecf4a3fdab84
svcrpc: close connection if client sends short packet

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>
net/sunrpc/svcsock.c