1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-31 16:52:19 +01:00

Merge pull request #27 from eworm-de/stack

use correct size to hex decode salt
This commit is contained in:
Klas Lindfors 2013-09-19 05:44:02 -07:00
commit ed88722dd3

2
util.c
View File

@ -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);