Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176865041
D29011.1793528787.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
698 B
Referenced Files
None
Subscribers
None
D29011.1793528787.diff
View Options
Index: sys/dev/if_wg/module/if_wg_session.c
===================================================================
--- sys/dev/if_wg/module/if_wg_session.c
+++ sys/dev/if_wg/module/if_wg_session.c
@@ -1907,6 +1907,7 @@
if ((m = m_defrag(m0, M_NOWAIT)) == NULL) {
DPRINTF(sc, "DEFRAG fail\n");
+ m_freem(m0);
return;
}
data = mtod(m, void *);
@@ -1937,8 +1938,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
Sun, Nov 1, 10:26 AM (22 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41282777
Default Alt Text
D29011.1793528787.diff (698 B)
Attached To
Mode
D29011: wg: Fix some mbuf leaks in the input path
Attached
Detach File
Event Timeline