Page MenuHomeFreeBSD

D46766.diff
No OneTemporary

D46766.diff

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
@@ -1372,7 +1372,7 @@
int autoflowlabel = 0;
#endif
#ifdef MAC
- struct label *maclabel;
+ struct label *maclabel = NULL;
#endif
struct syncache scs;
struct ucred *cred;
@@ -1763,10 +1763,11 @@
tfo_expanded:
if (cred != NULL)
crfree(cred);
+ if (sc == NULL || sc == &scs) {
#ifdef MAC
- if (sc == &scs)
mac_syncache_destroy(&maclabel);
#endif
+ }
return (rv);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 8, 6:25 PM (16 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28483502
Default Alt Text
D46766.diff (523 B)

Event Timeline