From ca39fcb0d879acd59f47c38cfb49a8f0033edf88 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 18 Jan 2019 01:38:59 +0000 Subject: Be consistent in explicitly testing memcmp() return values. --- sbin/dhclient/clparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/dhclient/clparse.c') 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; -- cgit v1.2.3