tipc: Reject connection protocol message sent to unconnected port
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 1 Jun 2011 19:08:10 +0000 (15:08 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Jun 2011 20:18:18 +0000 (16:18 -0400)
commit1c1a551acb8b65f842824900b283a96462f907ab
tree902c7102e6d8159916c918372b6c880b109300dc
parente244a915ff7676b1567ba68102c9b53011f5b766
tipc: Reject connection protocol message sent to unconnected port

Restructures the logic used in tipc_port_recv_proto_msg() to ensure
that incoming connection protocol messages are handled properly. The
routine now uses a two-stage process that first ensures the message
applies on an existing connection and then processes the request.
This corrects a loophole that allowed a connection probe request to
be processed if it was sent to an unconnected port that had no names
bound to it.

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