Fix pasto so lease_rebind() returns rebind value and not
authorkrw <krw@openbsd.org>
Mon, 27 Nov 2017 13:09:20 +0000 (13:09 +0000)
committerkrw <krw@openbsd.org>
Mon, 27 Nov 2017 13:09:20 +0000 (13:09 +0000)
renewal value.

sbin/dhclient/dhclient.c

index 8d55588..eb69e50 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dhclient.c,v 1.528 2017/11/26 16:17:13 krw Exp $      */
+/*     $OpenBSD: dhclient.c,v 1.529 2017/11/27 13:09:20 krw Exp $      */
 
 /*
  * Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -2684,5 +2684,5 @@ lease_rebind(struct client_lease *lease)
        if (rebind < renewal)
                rebind = renewal;
 
-       return lease->epoch + renewal;
+       return lease->epoch + rebind;
 }