Author: tuexen
Date: Sat Apr  7 14:43:01 2018
New Revision: 332174
URL: https://svnweb.freebsd.org/changeset/base/332174

Log:
  MFC r321205:
  
  Avoid shadowed variables.

Modified:
  stable/11/sys/netinet/sctp_indata.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_indata.c
==============================================================================
--- stable/11/sys/netinet/sctp_indata.c Sat Apr  7 14:42:47 2018        
(r332173)
+++ stable/11/sys/netinet/sctp_indata.c Sat Apr  7 14:43:01 2018        
(r332174)
@@ -2071,12 +2071,12 @@ sctp_process_a_data_chunk(struct sctp_tcb *stcb, struc
                        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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to