mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-01 01:52:17 +01:00
Merge pull request #27 from eworm-de/stack
use correct size to hex decode salt
This commit is contained in:
commit
ed88722dd3
2
util.c
2
util.c
@ -269,7 +269,7 @@ load_chalresp_state(FILE *f, CR_STATE *state, bool verbose)
|
||||
challenge_hex, response_hex, salt_hex, iterations, slot));
|
||||
}
|
||||
|
||||
yubikey_hex_decode(state->salt, salt_hex, sizeof(state->challenge));
|
||||
yubikey_hex_decode(state->salt, salt_hex, sizeof(state->salt));
|
||||
state->salt_len = strlen(salt_hex) / 2;
|
||||
} else {
|
||||
rewind(f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user