projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8d56c
)
net: fix sctp breakage
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 19 Mar 2009 02:12:42 +0000
(19:12 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sat, 2 May 2009 17:56:30 +0000
(10:56 -0700)
[ Upstream commit
cb0dc77de0d23615a845e45844a2e22fc224d7fe
]
broken by commit
5e739d1752aca4e8f3e794d431503bfca3162df4
; AFAICS should
be -stable fodder as well...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Aced-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/endpointola.c
patch
|
blob
|
history
diff --git
a/net/sctp/endpointola.c
b/net/sctp/endpointola.c
index 4c8d9f45ce0999b5141f7fb92a7ee4ab1b03ef99..905fda582b92b652aebd8108feaa12f9cf92fb79 100644
(file)
--- a/
net/sctp/endpointola.c
+++ b/
net/sctp/endpointola.c
@@
-111,7
+111,8
@@
static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep,
if (sctp_addip_enable) {
auth_chunks->chunks[0] = SCTP_CID_ASCONF;
auth_chunks->chunks[1] = SCTP_CID_ASCONF_ACK;
- auth_chunks->param_hdr.length += htons(2);
+ auth_chunks->param_hdr.length =
+ htons(sizeof(sctp_paramhdr_t) + 2);
}
}