• Jon Maloy's avatar
    tipc: improve address sanity check in tipc_connect() · 23998835
    Jon Maloy authored
    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: default avatarJon Maloy <jon.maloy@ericsson.com>
    Acked-by: default avatarYing Xue <ying.xue@windriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    23998835
socket.c 73.5 KB