summaryrefslogtreecommitdiff
path: root/sbin/dhclient/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/packet.c')
-rw-r--r--sbin/dhclient/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/packet.c b/sbin/dhclient/packet.c
index b793ea9cc91..f6e94bca489 100644
--- a/sbin/dhclient/packet.c
+++ b/sbin/dhclient/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.20 2013/12/05 21:03:40 krw Exp $ */
+/* $OpenBSD: packet.c,v 1.21 2013/12/05 21:32:59 krw Exp $ */
/* Packet assembly code, originally contributed by Archie Cobbs. */
@@ -241,7 +241,7 @@ decode_udp_ip_header(unsigned char *buf, int bufix, struct sockaddr_in *from,
return (-1);
}
- memcpy(&from->sin_port, &udp->uh_sport, sizeof(from->sin_port));
+ memcpy(&from->sin_port, &udp->uh_sport, sizeof(udp->uh_sport));
return (ip_len + sizeof(*udp));
}