Improving the debug capabilities of the heap code, changed VFS to use const char...
[tpg/acess2.git] / Modules / IPStack / icmp.c
index 77bc691..088caaa 100644 (file)
@@ -111,7 +111,7 @@ int ICMP_Ping(tInterface *Interface, tIPv4 Addr)
                {
                        if(gICMP_PingSlots[i].Interface == NULL)        break;
                }
-               if(gICMP_PingSlots[i].Interface == NULL)        break;
+               if( i < PING_SLOTS )    break;
                Threads_Yield();
        }
        gICMP_PingSlots[i].Interface = Interface;

UCC git Repository :: git.ucc.asn.au