From: Roy Marples Date: Mon, 26 May 2008 20:43:34 +0000 (+0000) Subject: Fix pointer. X-Git-Tag: v4.0.2~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa52b460472412690462dcc3eeaada6c396059fb;p=thirdparty%2Fdhcpcd.git Fix pointer. --- diff --git a/net.c b/net.c index 34e1889c..2d5b0c4b 100644 --- a/net.c +++ b/net.c @@ -746,13 +746,13 @@ arp_claim(struct interface *iface, struct in_addr address) if (!(fds[1].revents & POLLIN)) continue; for(;;) { - memset(&arp_reply, 0, sizeof(arp_reply)); + memset(arp_reply, 0, sizeof(arp_reply)); bytes = get_packet(iface, - &arp_reply, sizeof(arp_reply)); + arp_reply, sizeof(arp_reply)); if (bytes == -1 || bytes == 0) break; - memcpy(&reply, &arp_reply, sizeof(reply)); + memcpy(&reply, arp_reply, sizeof(reply)); /* Only these types are recognised */ if (reply.ar_op != htons(ARPOP_REPLY)) continue;