From 3ca1a29bbd6cfe05f20a9d9717be7b98214a3591 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 20 Mar 2017 10:54:51 -0600 Subject: [PATCH] defrag: fix argument used in macro to match signature "p" was being used in the macro but was not an argument to the macro, but it worked due to the context of the macro. Use the actual macro argument, d2, instead of p. Results in no change to generated code. --- src/defrag-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/defrag-hash.c b/src/defrag-hash.c index 736099c587..a5355ebda0 100644 --- a/src/defrag-hash.c +++ b/src/defrag-hash.c @@ -407,7 +407,7 @@ static inline uint32_t DefragHashGetKey(Packet *p) CMP_ADDR(&(d1)->dst_addr, &(d2)->dst)) || \ (CMP_ADDR(&(d1)->src_addr, &(d2)->dst) && \ CMP_ADDR(&(d1)->dst_addr, &(d2)->src))) && \ - (d1)->proto == IP_GET_IPPROTO(p) && \ + (d1)->proto == IP_GET_IPPROTO(d2) && \ (d1)->id == (id) && \ (d1)->vlan_id[0] == (d2)->vlan_id[0] && \ (d1)->vlan_id[1] == (d2)->vlan_id[1]) -- 2.47.2