FreeBSD Bugzilla – Attachment 224938 Details for
Bug 255875
[PATCH] netpfil/ipfw: Fix a double free in aqm_codel_enqueue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
adds a new label "out"
0001-netpfil-ipfw-double-free-aqm_codel_enqueue.patch (text/plain), 602 bytes, created by
lylgood
on 2021-05-14 13:02:08 UTC
(
hide
)
Description:
adds a new label "out"
Filename:
MIME Type:
Creator:
lylgood
Created:
2021-05-14 13:02:08 UTC
Size:
602 bytes
patch
obsolete
>diff --git a/sys/netpfil/ipfw/dn_aqm_codel.c b/sys/netpfil/ipfw/dn_aqm_codel.c >index 4b921f0f52c8..f0646bc370e5 100644 >--- a/sys/netpfil/ipfw/dn_aqm_codel.c >+++ b/sys/netpfil/ipfw/dn_aqm_codel.c >@@ -258,7 +258,7 @@ aqm_codel_enqueue(struct dn_queue *q, struct mbuf *m) > sizeof(aqm_time_t), M_NOWAIT); > if (mtag == NULL) { > m_freem(m); >- goto drop; >+ goto out; > } > > *(aqm_time_t *)(mtag + 1) = AQM_UNOW; >@@ -269,8 +269,9 @@ aqm_codel_enqueue(struct dn_queue *q, struct mbuf *m) > return (0); > > drop: >- update_stats(q, 0, 1); > FREE_PKT(m); >+out: >+ update_stats(q, 0, 1); > return (1); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255875
: 224938