dhclient - Fix spurious 'got link'
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 31 Jul 2012 19:44:12 +0000 (21:44 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 15 Aug 2012 01:22:11 +0000 (03:22 +0200)
Taken-from: OpenBSD

sbin/dhclient/dhclient.c

index 293f424..fad1df2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.119 2008/05/26 03:11:48 deraadt Exp $        */
+/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.120 2008/06/07 03:22:26 deraadt Exp $ */
 
 /*
  * Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -340,7 +340,7 @@ main(int argc, char *argv[])
                }
                sleep(1);
        }
-       if (i >= 0)
+       if (i > 0)
                fprintf(stderr, " got link\n");
 
  dispatch: