]> Zhao Yanbai Git Server - minix.git/commitdiff
INET: initialize timer to not-in-use
authorThomas Veerman <thomas@minix3.org>
Fri, 13 Jan 2012 16:48:46 +0000 (16:48 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 16 Jan 2012 11:09:46 +0000 (11:09 +0000)
servers/inet/generic/arp.c

index 2fa0ec8bf20f31a500c565674071f8d4fe6b0753..7eec870bcf227fb232f39f863ff8846845612677 100644 (file)
@@ -850,8 +850,11 @@ arp_func_t arp_func;
        arp_port->ap_sendpkt= NULL;
        arp_port->ap_sendlist= NULL;
        arp_port->ap_reclist= NULL;
-       for (i= 0; i<AP_REQ_NR; i++)
+       for (i= 0; i<AP_REQ_NR; i++) {
                arp_port->ap_req[i].ar_entry= -1;
+               arp_port->ap_req[i].ar_timer.tim_active= 0;
+       }
+
        ev_init(&arp_port->ap_event);
 
        arp_main(arp_port);