X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Ficmp.c;h=088caaaf6e9e255206ddfe68ec102ddc45e88b7a;hb=6a945643557084578509e149c84cf5dde3c59c3c;hp=77bc6911692f230a863d6651689af2212946d344;hpb=a6ae0de09b0704ff2a9ffa3ad8f10cd1d4cc58d7;p=tpg%2Facess2.git diff --git a/Modules/IPStack/icmp.c b/Modules/IPStack/icmp.c index 77bc6911..088caaaf 100644 --- a/Modules/IPStack/icmp.c +++ b/Modules/IPStack/icmp.c @@ -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;