summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ping.c b/core/ping.c
index 37f1b7ae..d1cc182f 100644
--- a/core/ping.c
+++ b/core/ping.c
@@ -102,7 +102,7 @@ bool is_pinging(IP_Port ipp, uint64_t ping_id) // O(n)
102 id = (pos_pings + i) % PING_NUM_MAX; 102 id = (pos_pings + i) % PING_NUM_MAX;
103 103
104 // ping_id = 0 means match any id 104 // ping_id = 0 means match any id
105 if(ipp_eq(pings[id].ipp, ipp) && (ping_id == 0 || pings[id].id == ping_id)) { 105 if ((ipp_eq(pings[id].ipp, ipp) || ipp.ip.i == 0) && (pings[id].id == ping_id || ping_id == 0)) {
106 return true; 106 return true;
107 } 107 }
108 } 108 }