Increment 'sa' at the end of the loop; otherwise, only the first

address ever gets checked.

Approved by: rrs (mentor)
MFC after: 1 month
This commit is contained in:
Rebecca Cran 2010-07-05 03:55:49 +00:00
parent 5d8d4137df
commit 45d35a30bd

View File

@ -304,7 +304,7 @@ sctp_bindx(int sd, struct sockaddr *addrs, int addrcnt, int flags)
goto out_error;
}
sa = (struct sockaddr *)((caddr_t)sa + sz);
}
sa = addrs;
/*