From cd5010893e29e462938b24e9a616032d42312b9f Mon Sep 17 00:00:00 2001 From: david Date: Sat, 29 Aug 2009 01:50:31 +0000 Subject: [PATCH] Adapt part of the code I missed in r15354; the code for an address mask request did take into the account the size of the u32 in pointer arithmetic, so it had to be changed with the change to u8. --- tcpip.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcpip.cc b/tcpip.cc index 09f9cd5ae..f499e8052 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -1512,7 +1512,8 @@ char *ping = (char *) &pingpkt; dlen -= 12; } else if (ptype == 17 && pcode == 0) /* icmp netmask req */ { icmplen = 12; - *datastart++ = 0; + memset(datastart, 0, 4); + datastart += 4; dlen -= 4; } else fatal("Unknown icmp type/code (%d/%d) in %s", ptype, pcode, __func__);