Avoid shadowed variables.

MFC after:	1 week
This commit is contained in:
tuexen 2017-07-19 15:12:23 +00:00
parent 425c1c5a8c
commit 75df636424

View File

@ -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;