]> git.ipfire.org Git - thirdparty/hostap.git/commit
TDLS: Clean up os_memcmp use
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 16 Feb 2016 13:49:28 +0000 (15:49 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 16 Feb 2016 13:49:28 +0000 (15:49 +0200)
commit24c382af7a7613dfe26e0c9e2c9d6a11ff6d07cc
treefb66b9799779de93d2f1d63d6c4a9f5caeb066f4
parentb333f53f6ee15089d8a04392860b42dc52eab7ef
TDLS: Clean up os_memcmp use

Ciuple of the nonce comparisons used a strange '!os_memcmp() == 0' to
check if the values were different. While this resulted in correct
behavior, the construction is not exactly clear and clang has started
warning about this (-Wlogical-not-parentheses). Clean this up by using
'os_mecmp() != 0'.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/tdls.c