ipsec: silence gcc-11 parentheses warning 97/34297/1
authorDamjan Marion <damarion@cisco.com>
Sun, 31 Oct 2021 19:02:19 +0000 (20:02 +0100)
committerDamjan Marion <damarion@cisco.com>
Sun, 31 Oct 2021 19:03:01 +0000 (20:03 +0100)
Type: fix
This reverts commit 5ecda99d673298e5bf3c906e9bf6682fdcb57d83.

Change-Id: I393c7d8a6b32aa4f178d6b6dac025038bbf10fe6
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/ipsec/esp_encrypt.c

index d102bd6..33484e9 100644 (file)
@@ -204,7 +204,7 @@ ext_hdr_is_pre_esp (u8 nexthdr)
 #else
   return ((nexthdr ^ IP_PROTOCOL_IP6_HOP_BY_HOP_OPTIONS) |
          (nexthdr ^ IP_PROTOCOL_IPV6_ROUTE) |
-         (nexthdr ^ IP_PROTOCOL_IPV6_FRAGMENTATION) != 0);
+         ((nexthdr ^ IP_PROTOCOL_IPV6_FRAGMENTATION) != 0));
 #endif
 }