Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.

The issue was reported by Andrew Galante.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2013-10-28 20:32:37 +00:00
parent eaeb0c139a
commit daac3e7db6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257272

View file

@ -3740,7 +3740,7 @@ sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr,
sin->sin_len = sizeof(struct sockaddr_in);
if (set_scope) {
#ifdef SCTP_DONT_DO_PRIVADDR_SCOPE
stcb->ipv4_local_scope = 1;
stcb->asoc.scope.ipv4_local_scope = 1;
#else
if (IN4_ISPRIVATE_ADDRESS(&sin->sin_addr)) {
stcb->asoc.scope.ipv4_local_scope = 1;