projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79e780
)
[SCTP]: Fix err_hdr assignment in sctp_init_cause.
author
Vlad Yasevich
<
[email protected]
>
Tue, 9 Jan 2007 22:35:51 +0000
(14:35 -0800)
committer
David S. Miller
<
[email protected]
>
Tue, 9 Jan 2007 22:35:51 +0000
(14:35 -0800)
The subh->err_hdr should point to the error header, not the data.
Signed-off-by: Vlad Yasevich <
[email protected]
>
Signed-off-by: Sridhar Samudrala <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sctp/sm_make_chunk.c
patch
|
blob
|
history
diff --git
a/net/sctp/sm_make_chunk.c
b/net/sctp/sm_make_chunk.c
index f0bbe36799cffad5b6fa60891b08ed51ac58869f..167d888d1df263f29ee3734ba4ee6864931b70f6 100644
(file)
--- 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,
padlen = len % 4;
err.length = htons(len);
len += padlen;
- sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err);
-
chunk->subh.err_hdr =
sctp_addto_chunk(chunk, paylen, payload);
+
chunk->subh.err_hdr =
sctp_addto_chunk(chunk, sizeof(sctp_errhdr_t), &err);
+ sctp_addto_chunk(chunk, paylen, payload);
}
/* 3.3.2 Initiation (INIT) (1)