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)
commitea239314fe42ace880bdd834256834679346c80e
tree0289448a583ec424d677bd943459e130fd30aae8
parent65e9a6d25deb752d97b88335068dc0e7accbc9c3
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: 23998835be98 ("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