From: krw Date: Sat, 20 Feb 2021 14:56:59 +0000 (+0000) Subject: tick_msg("lease", TICK_SUCCESS) in bind_lease() should *not* be X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f9ff689f8f8cd040d832cc3509170f3880033229;p=openbsd tick_msg("lease", TICK_SUCCESS) in bind_lease() should *not* be invoked when log_getverbose() returns 0. --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 276f809cdd6..b518fdca28b 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.694 2021/02/19 13:46:59 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.695 2021/02/20 14:56:59 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -1071,7 +1071,7 @@ bind_lease(struct interface_info *ifi) int rslt, seen; time(&cur_time); - if (log_getverbose() == 0) + if (log_getverbose()) tick_msg("lease", TICK_SUCCESS); lease = apply_defaults(ifi->offer);