• Jon Maloy's avatar
    tipc: fix missing initializer in tipc_sendmsg() · 335b929b
    Jon Maloy authored
    The stack variable 'dnode' in __tipc_sendmsg() may theoretically
    end up tipc_node_get_mtu() as an unitilalized variable.
    
    We fix this by intializing the variable at declaration. We also add
    a default else clause to the two conditional ones already there, so
    that we never end up in the named function if the given address
    type is illegal.
    
    Reported-by: syzbot+b0975ce9355b347c1546@syzkaller.appspotmail.com
    Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    335b929b
socket.c 88.4 KB