Wei Yongjun d98985dd6c sctp: fix error return code in sctp_sendmsg_new_asoc()
Return error code -EINVAL in the address len check error handling
case since 'err' can be overwrite to 0 by 'err = sctp_verify_addr()'
in the for loop.

Fixes: 2c0dbaa0c43d ("sctp: add support for SCTP_DSTADDRV4/6 Information for sendmsg")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-13 10:45:11 -04:00
..
2018-02-15 14:29:27 -08:00
2018-03-05 10:48:27 -05:00
2018-03-05 10:48:27 -05:00
2018-03-05 10:48:28 -05:00
2017-11-01 12:19:03 +09:00
2018-02-27 11:01:35 -05:00
2018-03-12 11:14:06 -04:00
2018-03-08 12:36:44 -05:00
2017-11-08 16:12:33 +09:00
2018-02-13 10:36:08 -05:00
2018-02-27 14:41:48 -05:00
2018-02-20 13:51:47 -05:00
2018-03-08 12:36:43 -05:00
2018-02-01 09:51:57 -08:00
2018-02-13 10:36:05 -05:00