]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix auth_hmacs field's length of struct sctp_cookie
authorWei Yongjun <yjwei@cn.fujitsu.com>
Thu, 31 Mar 2011 23:38:54 +0000 (23:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Apr 2011 04:45:50 +0000 (21:45 -0700)
commit27fa7329de613541ce1e98073de1153fe70b8574
tree1285e03640f24a834fcb249af4dcbff9e8943f58
parent857b2852c2e5e3546825ce7723722fdbe7e91c71
sctp: fix auth_hmacs field's length of struct sctp_cookie

auth_hmacs field of struct sctp_cookie is used for store
Requested HMAC Algorithm Parameter, and each HMAC Identifier
is 2 bytes, so the length should be:
  SCTP_AUTH_NUM_HMACS * sizeof(__u16) + 2

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h