diff options
author | Jouni Malinen <j@w1.fi> | 2015-07-26 08:25:49 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-07-26 15:12:08 (GMT) |
commit | fe73b469e8a614b7e04e17d2f3e8fd9d542191a2 (patch) | |
tree | 0c307f799373a94e0c1240e0ab94d8fb6c634ced /src/fst | |
parent | 3aa1ca9aec6cbe12a3ffbca3e1956d5cffd71362 (diff) | |
download | hostap-fe73b469e8a614b7e04e17d2f3e8fd9d542191a2.zip hostap-fe73b469e8a614b7e04e17d2f3e8fd9d542191a2.tar.gz hostap-fe73b469e8a614b7e04e17d2f3e8fd9d542191a2.tar.bz2 |
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>
Diffstat (limited to 'src/fst')
-rw-r--r-- | src/fst/fst_group.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fst/fst_group.h b/src/fst/fst_group.h index faee262..3a87c0b 100644 --- a/src/fst/fst_group.h +++ b/src/fst/fst_group.h @@ -12,7 +12,7 @@ struct fst_group { char group_id[IFNAMSIZ + 1]; struct dl_list ifaces; - u32 dialog_token; + u8 dialog_token; u32 fsts_id; struct dl_list global_groups_lentry; }; |