Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73585
b: refs/heads/master
c: f3830cc
h: refs/heads/master
i:
  73583: 06415b9
v: v3
  • Loading branch information
Wei Yongjun authored and Vlad Yasevich committed Nov 7, 2007
1 parent 00837a3 commit 04c6639
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64b0812b6d26bb30cac74c65f51f4ebfb4ec5429
refs/heads/master: f3830ccc2ea503ab37d605f6c313d61423ddd94e
8 changes: 6 additions & 2 deletions trunk/net/sctp/sm_make_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,10 +2848,11 @@ struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc,

__be16 err_code;
int length = 0;
int chunk_len = asconf->skb->len;
int chunk_len;
__u32 serial;
int all_param_pass = 1;

chunk_len = ntohs(asconf->chunk_hdr->length) - sizeof(sctp_chunkhdr_t);
hdr = (sctp_addiphdr_t *)asconf->skb->data;
serial = ntohl(hdr->serial);

Expand Down Expand Up @@ -2990,14 +2991,17 @@ static __be16 sctp_get_asconf_response(struct sctp_chunk *asconf_ack,
sctp_addip_param_t *asconf_ack_param;
sctp_errhdr_t *err_param;
int length;
int asconf_ack_len = asconf_ack->skb->len;
int asconf_ack_len;
__be16 err_code;

if (no_err)
err_code = SCTP_ERROR_NO_ERROR;
else
err_code = SCTP_ERROR_REQ_REFUSED;

asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) -
sizeof(sctp_chunkhdr_t);

/* Skip the addiphdr from the asconf_ack chunk and store a pointer to
* the first asconf_ack parameter.
*/
Expand Down

0 comments on commit 04c6639

Please sign in to comment.