Avoid shadowed variables.
MFC after: 1 week
This commit is contained in:
parent
5ba7f91f9d
commit
1f76872c36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321205
@ -2071,12 +2071,12 @@ sctp_process_a_data_chunk(struct sctp_tcb *stcb, struct sctp_association *asoc,
|
||||
return (0);
|
||||
}
|
||||
if ((chk_flags & SCTP_DATA_NOT_FRAG) == SCTP_DATA_NOT_FRAG) {
|
||||
struct mbuf *m;
|
||||
struct mbuf *mm;
|
||||
|
||||
control->data = dmbuf;
|
||||
m = control->data;
|
||||
for (m = control->data; m; m = m->m_next) {
|
||||
control->length += SCTP_BUF_LEN(m);
|
||||
mm = control->data;
|
||||
for (mm = control->data; mm; mm = mm->m_next) {
|
||||
control->length += SCTP_BUF_LEN(mm);
|
||||
}
|
||||
control->tail_mbuf = NULL;
|
||||
control->end_added = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user