Преглед на файлове

Added brackets, completed CHANGELOG

goldsimon преди 13 години
родител
ревизия
6d8dee6d68
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 3 0
      CHANGELOG
  2. 1 1
      src/core/dhcp.c

+ 3 - 0
CHANGELOG

@@ -66,6 +66,9 @@ HISTORY
 
  ++ Bugfixes:
 
+  2012-09-26: patch by Henrik Persson
+  * dhcp.c: patch #7843 Fix corner case with dhcp timeouts
+
   2012-09-26: patch by Henrik Persson
   * dhcp.c: patch #7840 Segfault in dhcp_parse_reply if no end marker in dhcp packet
 

+ 1 - 1
src/core/dhcp.c

@@ -963,7 +963,7 @@ dhcp_bind(struct netif *netif)
   }
 
   /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */
-  if (dhcp->t1_timeout >= dhcp->t2_timeout && dhcp->t2_timeout > 0) {
+  if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
     dhcp->t1_timeout = 0;
   }