]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: allow service ranges to be connect()'ed on RDM/DGRAM
authorErik Hugne <erik.hugne@gmail.com>
Sun, 17 Mar 2019 17:46:42 +0000 (18:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Mar 2019 04:32:11 +0000 (21:32 -0700)
commitfbf56b3346472629b5e6394d9eab942e7350ba19
tree0289448a583ec424d677bd943459e130fd30aae8
parent25267d16c24be376213485e7b10259e3135d4bb7
tipc: allow service ranges to be connect()'ed on RDM/DGRAM

We move the check that prevents connecting service ranges to after
the RDM/DGRAM check, and move address sanity control to a separate
function that also validates the service range.

Fixes: a3df889e79b8 ("tipc: improve address sanity check in tipc_connect()")
Signed-off-by: Erik Hugne <erik.hugne@gmail.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c