FST: Fix dialog token wrap-around
authorJouni Malinen <j@w1.fi>
Sun, 26 Jul 2015 08:25:49 +0000 (11:25 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jul 2015 15:12:08 +0000 (18:12 +0300)
commitfe73b469e8a614b7e04e17d2f3e8fd9d542191a2
tree0c307f799373a94e0c1240e0ab94d8fb6c634ced
parent3aa1ca9aec6cbe12a3ffbca3e1956d5cffd71362
FST: Fix dialog token wrap-around

Dialog token is only 8 bits and maintaining u32 version of it in struct
fst_group resulted in incorrect wrap-around behavior in
fst_group_assign_dialog_token(). It was possible to assign u8
dialog_token value 0 because of this. Fix this by using u8 variable
consistently.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/fst/fst_group.h