Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160639774
D29011.id85339.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D29011.id85339.diff
View Options
diff --git a/sys/dev/if_wg/module/if_wg_session.c b/sys/dev/if_wg/module/if_wg_session.c
--- a/sys/dev/if_wg/module/if_wg_session.c
+++ b/sys/dev/if_wg/module/if_wg_session.c
@@ -1913,6 +1913,7 @@
*/
if ((m = m_pullup(m0, m0->m_pkthdr.len)) == NULL) {
DPRINTF(sc, "DEFRAG fail\n");
+ m_freem(m0);
return;
}
data = mtod(m, void *);
@@ -1943,8 +1944,10 @@
verify_endpoint(m);
if (mbufq_enqueue(&sc->sc_handshake_queue, m) == 0) {
GROUPTASK_ENQUEUE(&sc->sc_handshake);
- } else
+ } else {
DPRINTF(sc, "Dropping handshake packet\n");
+ wg_m_freem(m);
+ }
} else if (pktlen >= sizeof(struct wg_pkt_data) + NOISE_MAC_SIZE
&& pkttype == MESSAGE_DATA) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 27, 10:05 AM (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34395352
Default Alt Text
D29011.id85339.diff (692 B)
Attached To
Mode
D29011: wg: Fix some mbuf leaks in the input path
Attached
Detach File
Event Timeline
Log In to Comment