Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105821225
D31755.id94493.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
701 B
Referenced Files
None
Subscribers
None
D31755.id94493.diff
View Options
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c
--- a/sys/netinet/sctp_input.c
+++ b/sys/netinet/sctp_input.c
@@ -4895,6 +4895,11 @@
struct sctp_inpcb *linp;
struct sctp_tmit_chunk *chk;
+ if (inp->sctp_flags & (SCTP_PCB_FLAGS_SOCKET_GONE |
+ SCTP_PCB_FLAGS_SOCKET_ALLGONE)) {
+ goto abend;
+ }
+
if (stcb) {
linp = NULL;
} else {
@@ -4903,11 +4908,6 @@
if (linp != NULL) {
SCTP_ASOC_CREATE_LOCK(linp);
- if ((inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) ||
- (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE)) {
- SCTP_ASOC_CREATE_UNLOCK(linp);
- goto abend;
- }
}
if (netp != NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 5:18 AM (18 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15550852
Default Alt Text
D31755.id94493.diff (701 B)
Attached To
Mode
D31755: sctp: Always check for a vanishing inpcb when processing COOKIE-ECHO
Attached
Detach File
Event Timeline
Log In to Comment