Commit e4e742bc authored by Youness Alaoui's avatar Youness Alaoui

Fix long term credentials hmac generation

parent c395f5c6
......@@ -89,8 +89,8 @@ static const uint8_t *priv_trim_var (const uint8_t *var, size_t *var_len)
ptr++;
(*var_len)--;
}
while(ptr[*var_len] == '"' ||
ptr[*var_len] == 0) {
while(ptr[*var_len-1] == '"' ||
ptr[*var_len-1] == 0) {
(*var_len)--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment