Add protection code.
MFC after: 3 days CID: 748858
This commit is contained in:
parent
fdc4c9d067
commit
861f6d1196
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295773
@ -3222,12 +3222,14 @@ sctp_choose_boundall(struct sctp_inpcb *inp,
|
||||
}
|
||||
}
|
||||
#ifdef INET
|
||||
if ((retried == 0) && (stcb->asoc.scope.ipv4_local_scope == 0)) {
|
||||
stcb->asoc.scope.ipv4_local_scope = 1;
|
||||
retried = 1;
|
||||
goto again_with_private_addresses_allowed;
|
||||
} else if (retried == 1) {
|
||||
stcb->asoc.scope.ipv4_local_scope = 0;
|
||||
if (stcb) {
|
||||
if ((retried == 0) && (stcb->asoc.scope.ipv4_local_scope == 0)) {
|
||||
stcb->asoc.scope.ipv4_local_scope = 1;
|
||||
retried = 1;
|
||||
goto again_with_private_addresses_allowed;
|
||||
} else if (retried == 1) {
|
||||
stcb->asoc.scope.ipv4_local_scope = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user