svn commit: r209709 - head/lib/libc/net

Bruce Cran brucec at FreeBSD.org
Mon Jul 5 03:55:49 UTC 2010


Author: brucec
Date: Mon Jul  5 03:55:49 2010
New Revision: 209709
URL: http://svn.freebsd.org/changeset/base/209709

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

Modified:
  head/lib/libc/net/sctp_sys_calls.c

Modified: head/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- head/lib/libc/net/sctp_sys_calls.c	Mon Jul  5 01:14:32 2010	(r209708)
+++ head/lib/libc/net/sctp_sys_calls.c	Mon Jul  5 03:55:49 2010	(r209709)
@@ -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