tick_msg("lease", TICK_SUCCESS) in bind_lease() should *not* be
authorkrw <krw@openbsd.org>
Sat, 20 Feb 2021 14:56:59 +0000 (14:56 +0000)
committerkrw <krw@openbsd.org>
Sat, 20 Feb 2021 14:56:59 +0000 (14:56 +0000)
invoked when log_getverbose() returns 0.

sbin/dhclient/dhclient.c

index 276f809..b518fdc 100644 (file)
@@ -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 <henning@openbsd.org>
@@ -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);