Skip to content

Commit

Permalink
icmp6: remove extra open parenthesis
Browse files Browse the repository at this point in the history
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 <jere.leppanen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
  • Loading branch information
JereLeppanen committed Oct 27, 2023
1 parent 0d10a57 commit 58bc54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ofp_icmp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 58bc54b

Please sign in to comment.