]> git.karo-electronics.de Git - linux-beck.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)
commitaad585473fe1e4b07f2ec1e2432475937f90c385
tree912d287ceb53b56622e7480bea470dedc855e93c
parent8f1778969359a71f398c9ac6d3a9a3e61439b466
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