diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-01-09 17:35:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-01-09 17:35:51 -0500 |
commit | 4a1c0107bca2eccf4491b86fec41ce63268d803d (patch) | |
tree | e73a1094c72a9bd586a3442630460986abab671b | |
parent | f79e7802153829e015dc2a60eb8b7444eb191b67 (diff) |
[SCTP]: Fix err_hdr assignment in sctp_init_cause.
The subh->err_hdr should point to the error header, not the data.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/sm_make_chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index f0bbe36799cf..167d888d1df2 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -124,8 +124,8 @@ void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause_code, | |||
124 | padlen = len % 4; | 124 | padlen = len % 4; |
125 | err.length = htons(len); | 125 | err.length = htons(len); |
126 | len += padlen; | 126 | len += padlen; |
127 | sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err); | 127 | chunk->subh.err_hdr = sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err); |
128 | chunk->subh.err_hdr = sctp_addto_chunk(chunk, paylen, payload); | 128 | sctp_addto_chunk(chunk, paylen, payload); |
129 | } | 129 | } |
130 | 130 | ||
131 | /* 3.3.2 Initiation (INIT) (1) | 131 | /* 3.3.2 Initiation (INIT) (1) |