aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-11 14:29:50 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-11 14:29:50 (GMT)
commite41e4f9ee39635f8388f62be45629305b3daa3b7 (patch)
tree0327fab832ed8f50c74c8cb41057ba8a6196c8c6 /doc
parentf4452cc2b12e61232977a8f1c56dd2f2db702127 (diff)
downloadhostap-e41e4f9ee39635f8388f62be45629305b3daa3b7.zip
hostap-e41e4f9ee39635f8388f62be45629305b3daa3b7.tar.gz
hostap-e41e4f9ee39635f8388f62be45629305b3daa3b7.tar.bz2
Simplify memory allocation/freeing for static analyzers
It looks like the use of sm->wpa == WPA_VERSION_WPA2 in two locations within the function was a bit too much for clang static analyzer to understand. Use a separate variable for storing the allocated memory so that it can be freed unconditionally. The kde variable can point to either stack memory or temporary allocation, but that is now const pointer to make the design clearer. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions