]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix pointer.
authorRoy Marples <roy@marples.name>
Mon, 26 May 2008 20:43:34 +0000 (20:43 +0000)
committerRoy Marples <roy@marples.name>
Mon, 26 May 2008 20:43:34 +0000 (20:43 +0000)
net.c

diff --git a/net.c b/net.c
index 34e1889ce3aac2b5b369634f342e1e2d9dbd6f27..2d5b0c4b9e12ae39329635ecf7a43d867578ddf8 100644 (file)
--- 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;