X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fsctp%2Fendpointola.c;h=905fda582b92b652aebd8108feaa12f9cf92fb79;hb=21cdbc1378e8aa96e1ed4a606dce1a8e7daf7fdf;hp=4c8d9f45ce0999b5141f7fb92a7ee4ab1b03ef99;hpb=42390cdec5f6e6e2ee54f308474a6ef7dd16aa5c;p=linux-2.6-omap-h63xx.git diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 4c8d9f45ce0..905fda582b9 100644 --- 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); } }