From 6147565c3147efb0c45659a6b73505d68e51469e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jere=20Lepp=C3=A4nen?= Date: Thu, 19 Oct 2023 17:39:30 +0300 Subject: [PATCH] icmp6: remove extra open parenthesis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An extra open parenthesis seems to have been added in commit 8f7a5f2, which breaks compilation with the --disable-sp configure option. Remove it. Fixes: 8f7a5f2 icmp6: Fix array-bounds warnings on icmp6 data access Signed-off-by: Jere Leppänen Reviewed-by: Tuomas Taipale --- src/ofp_icmp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ofp_icmp6.c b/src/ofp_icmp6.c index 96687919..40b1056d 100644 --- a/src/ofp_icmp6.c +++ b/src/ofp_icmp6.c @@ -794,7 +794,7 @@ ofp_icmp6_input(odp_packet_t *m, int *offp, int *nxt) ofp_nd6_ns_input(*m, off, icmp6len); #ifndef SP if (icmp6len < (sizeof(struct ofp_nd_neighbor_solicit) + 8) && - (icmp6_data(icmp6)[20] != + icmp6_data(icmp6)[20] != OFP_ND_OPT_SOURCE_LINKADDR) goto badlen;