]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Reject payload messages with invalid message type
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 26 Apr 2012 22:13:08 +0000 (18:13 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 Apr 2012 14:08:00 +0000 (10:08 -0400)
commit25bbdb0b1f7dffaf378408ed07d47bc36a1dee82
tree912d287ceb53b56622e7480bea470dedc855e93c
parent4cacf230fd04d4608c5aa32e675534dc9eb620eb
tipc: Reject payload messages with invalid message type

Adds check to ensure TIPC sockets reject incoming payload messages
that have an unrecognized message type.

Remove the old open question about whether TIPC_ERR_NO_PORT is
the proper return value.  It is appropriate here since there are
valid instances where another node can make use of the reply,
and at this point in time the host is already broadcasting TIPC
data, so there are no real security concerns.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c