Diff between fc598fa12c08b554fb31e1a75b76ec3377c4dbaa and dabf32b313c1dbfcbb434778541e4ab03bb2121e

Changed Files

File Additions Deletions Status
mesh/net.c +1 -2 modified

Full Patch

diff --git a/mesh/net.c b/mesh/net.c
index a1b586a..3f42d96 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -1026,12 +1026,11 @@ static bool msg_in_cache(struct mesh_net *net, uint16_t src, uint32_t seq,
 		.mic = mic,
 	};
 
-	msg = l_queue_remove_if(net->msg_cache, match_cache, &tst);
+	msg = l_queue_find(net->msg_cache, match_cache, &tst);
 
 	if (msg) {
 		l_debug("Supressing duplicate %4.4x + %6.6x + %8.8x",
 							src, seq, mic);
-		l_queue_push_head(net->msg_cache, msg);
 		return true;
 	}