diff --git a/common/sbox.h b/common/sbox.h index e8379011e..bf51f419c 100644 --- a/common/sbox.h +++ b/common/sbox.h @@ -20,6 +20,7 @@ static inline m_uint32_t sbox_compute(m_uint8_t *data,int len) hash ^= sbox_array[*data]; hash *= 3; data++; + len--; } return(hash);