diff options
Diffstat (limited to 'slirp2/udp.c')
-rw-r--r-- | slirp2/udp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/slirp2/udp.c b/slirp2/udp.c index d4296d7..9305cfd 100644 --- a/slirp2/udp.c +++ b/slirp2/udp.c @@ -133,8 +133,7 @@ udp_input(m, iphlen) * Checksum extended UDP header and data. */ if (udpcksum && uh->uh_sum) { - ((struct ipovly *)ip)->ih_next = 0; - ((struct ipovly *)ip)->ih_prev = 0; + memset(&((struct ipovly *)ip)->ih_mbuf, 0, sizeof(struct mbuf_ptr)); ((struct ipovly *)ip)->ih_x1 = 0; ((struct ipovly *)ip)->ih_len = uh->uh_ulen; /* keep uh_sum for ICMP reply @@ -282,7 +281,7 @@ int udp_output2_(struct socket* so, MBuf m, * and addresses and length put into network format. */ ui = MBUF_TO(m, struct udpiphdr *); - ui->ui_next = ui->ui_prev = 0; + memset(&ui->ui_i.ih_mbuf, 0 , sizeof(struct mbuf_ptr)); ui->ui_x1 = 0; ui->ui_pr = IPPROTO_UDP; ui->ui_len = htons(m->m_len - sizeof(struct ip)); /* + sizeof (struct udphdr)); */ |