Page MenuHomeFreeBSD

D17357.id48574.diff
No OneTemporary

D17357.id48574.diff

Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ 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
Wed, Apr 15, 11:37 PM (7 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31561781
Default Alt Text
D17357.id48574.diff (615 B)

Event Timeline