svn commit: r211018 - stable/8/lib/libc/net

Bruce Cran brucec at FreeBSD.org
Sat Aug 7 13:36:56 UTC 2010


Author: brucec
Date: Sat Aug  7 13:36:55 2010
New Revision: 211018
URL: http://svn.freebsd.org/changeset/base/211018

Log:
  MFC r209709:
  
  Increment 'sa' at the end of the loop; otherwise, only the first
  address ever gets checked.
  
  Approved by: rrs (mentor)

Modified:
  stable/8/lib/libc/net/sctp_sys_calls.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/locale/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)
  stable/8/lib/libc/sys/   (props changed)

Modified: stable/8/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- stable/8/lib/libc/net/sctp_sys_calls.c	Sat Aug  7 13:34:52 2010	(r211017)
+++ stable/8/lib/libc/net/sctp_sys_calls.c	Sat Aug  7 13:36:55 2010	(r211018)
@@ -304,7 +304,7 @@ sctp_bindx(int sd, struct sockaddr *addr
 			goto out_error;
 		}
 
-
+		sa = (struct sockaddr *)((caddr_t)sa + sz);
 	}
 	sa = addrs;
 	/*


More information about the svn-src-all mailing list