commit | 60208f79139af0e2f84747d04a2f3321f174a398 | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Sun Mar 03 17:54:54 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 08 11:42:49 2019 -0800 |
tree | d7bee268cb2011bdfa25efb659fe6e286f4092c1 | |
parent | 89664c623617b1d34447a927ac7871ddf3db29d3 [diff] |
sctp: move up sctp_auth_init_hmacs() in sctp_endpoint_init() sctp_auth_init_hmacs() is called only when ep->auth_enable is set. It better to move up sctp_auth_init_hmacs() and remove auth_enable check in it and check auth_enable only once in sctp_endpoint_init(). Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>