Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109417597
D34078.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
462 B
Referenced Files
None
Subscribers
None
D34078.diff
View Options
diff --git a/sys/netpfil/ipfw/dn_sched_wf2q.c b/sys/netpfil/ipfw/dn_sched_wf2q.c
--- a/sys/netpfil/ipfw/dn_sched_wf2q.c
+++ b/sys/netpfil/ipfw/dn_sched_wf2q.c
@@ -243,6 +243,8 @@
q = HEAP_TOP(sch)->object;
alg_fq = (struct wf2qp_queue *)q;
m = dn_dequeue(q);
+ if (m == NULL)
+ return NULL;
heap_extract(sch, NULL); /* Remove queue from heap. */
si->V += (uint64_t)(m->m_pkthdr.len) * si->inv_wsum;
alg_fq->S = alg_fq->F; /* Update start time. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 7:30 PM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16479512
Default Alt Text
D34078.diff (462 B)
Attached To
Mode
D34078: dummynet: dn_dequeue() may return NULL
Attached
Detach File
Event Timeline
Log In to Comment