diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2017-10-13 11:04:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-13 08:46:00 -0700 |
commit | 23998835be98a6842e5698fa1824f404c7de850d (patch) | |
tree | 8007516156e1d53a479d6604aa6d963df62969a7 /lib | |
parent | 14c04493cb77bc38404dbcb39d5ccbb667831ad7 (diff) |
tipc: improve address sanity check in tipc_connect()
The address given to tipc_connect() is not completely sanity checked,
under the assumption that this will be done later in the function
__tipc_sendmsg() when the address is used there.
However, the latter functon will in the next commits serve as caller
to several other send functions, so we want to move the corresponding
sanity check there to the beginning of that function, before we possibly
need to grab the address stored by tipc_connect(). We must therefore
be able to trust that this address already has been thoroughly checked.
We do this in this commit.
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions