Skip to content

Commit

Permalink
Fixed compare only up to cha key parts (fixes #1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitko Iliev authored and pkleef committed Apr 17, 2023
1 parent 171718c commit 7c488ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsrc/Wi/chash.c
Original file line number Diff line number Diff line change
Expand Up @@ -2275,7 +2275,8 @@ setp_chash_distinct (setp_node_t * setp, caddr_t * inst)
if (ssl->ssl_type < SSL_VEC)
goto no;
dc = QST_BOX (data_col_t *, inst, ssl->ssl_index);
if (cha && dc->dc_dtp != cha->cha_sqt[inx].sqt_dtp && !((DCT_BOXES & dc->dc_type) && DV_ANY == cha->cha_sqt[inx].sqt_dtp))
if (cha && inx < cha->cha_n_keys && dc->dc_dtp != cha->cha_sqt[inx].sqt_dtp
&& !((DCT_BOXES & dc->dc_type) && DV_ANY == cha->cha_sqt[inx].sqt_dtp))
goto no;
}
if (!cha)
Expand Down

0 comments on commit 7c488ae

Please sign in to comment.