summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-01-18 01:38:59 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-01-18 01:38:59 +0000
commitca39fcb0d879acd59f47c38cfb49a8f0033edf88 (patch)
tree0a4f5bf70829edb629acd5c513c130ea9870eff6 /sbin/dhclient/dispatch.c
parentd5ea264072f2d4b0d4480de6fee2698391e06e32 (diff)
Be consistent in explicitly testing memcmp() return values.
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index 03e9619c59f..4248aa85130 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.158 2019/01/05 21:40:44 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.159 2019/01/18 01:38:58 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -227,7 +227,7 @@ dhcp_packet_dispatch(struct interface_info *ifi, struct sockaddr_in *from,
packet->hlen);
return;
} else if (memcmp(&ifi->hw_address, packet->chaddr,
- sizeof(ifi->hw_address))) {
+ sizeof(ifi->hw_address)) != 0) {
log_debug("%s: discarding packet with chaddr == %s",
log_procname,
ether_ntoa((struct ether_addr *)packet->chaddr));