diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-18 01:38:59 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-18 01:38:59 +0000 |
commit | ca39fcb0d879acd59f47c38cfb49a8f0033edf88 (patch) | |
tree | 0a4f5bf70829edb629acd5c513c130ea9870eff6 /sbin/dhclient/clparse.c | |
parent | d5ea264072f2d4b0d4480de6fee2698391e06e32 (diff) |
Be consistent in explicitly testing memcmp() return values.
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r-- | sbin/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index 578e4f5511f..fcdb6fde1d1 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.176 2019/01/14 04:54:46 krw Exp $ */ +/* $OpenBSD: clparse.c,v 1.177 2019/01/18 01:38:58 krw Exp $ */ /* Parser for dhclient config and lease files. */ @@ -213,7 +213,7 @@ read_lease_db(char *name, struct client_lease_tq *tq) lease->options[DHO_DHCP_CLIENT_IDENTIFIER].len) || memcmp(lp->options[DHO_DHCP_CLIENT_IDENTIFIER].data, lease->options[DHO_DHCP_CLIENT_IDENTIFIER].data, - lp->options[DHO_DHCP_CLIENT_IDENTIFIER].len))) + lp->options[DHO_DHCP_CLIENT_IDENTIFIER].len) != 0)) continue; if (lp->address.s_addr != lease->address.s_addr) continue; |