Page MenuHomeFreeBSD

D17357.id48780.diff
No OneTemporary

D17357.id48780.diff

Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/sys/netinet/ip_output.c
@@ -932,10 +932,11 @@
if (m->m_pkthdr.csum_flags & CSUM_UDP) {
/* if udp header is not in the first mbuf copy udplen */
- if (offset + sizeof(struct udphdr) > m->m_len)
+ if (offset + sizeof(struct udphdr) > m->m_len) {
m_copydata(m, offset + offsetof(struct udphdr,
uh_ulen), sizeof(cklen), (caddr_t)&cklen);
- else {
+ cklen = ntohs(cklen);
+ } else {
uh = (struct udphdr *)mtodo(m, offset);
cklen = ntohs(uh->uh_ulen);
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 24, 1:06 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30199127
Default Alt Text
D17357.id48780.diff (630 B)

Event Timeline