Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177571498
D57104.1794771257.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
880 B
Referenced Files
None
Subscribers
None
D57104.1794771257.diff
View Options
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1559,6 +1559,7 @@
if (sc->sc_ipopts)
(void)m_free(sc->sc_ipopts);
sc->sc_ipopts = ipopts;
+ ipopts = NULL;
}
/*
* Update timestamp if present.
@@ -1673,6 +1674,7 @@
sc->sc_cred = NULL;
sc->sc_port = port;
sc->sc_ipopts = ipopts;
+ ipopts = NULL;
bcopy(inc, &sc->sc_inc, sizeof(struct in_conninfo));
sc->sc_ip_tos = ip_tos;
sc->sc_ip_ttl = ip_ttl;
@@ -1819,13 +1821,14 @@
tfo_expanded:
if (cred != NULL)
crfree(cred);
- if (sc == NULL || sc == &scs) {
#ifdef MAC
+ if (sc == NULL || sc == &scs)
mac_syncache_destroy(&maclabel);
#endif
- if (ipopts)
- (void)m_free(ipopts);
- }
+ if (sc == &scs)
+ ipopts = sc->sc_ipopts;
+ if (ipopts != NULL)
+ (void)m_free(ipopts);
return (rv);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 7:34 PM (13 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41747547
Default Alt Text
D57104.1794771257.diff (880 B)
Attached To
Mode
D57104: tcp: improve TCP fast open with source routing
Attached
Detach File
Event Timeline