]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP peer: Add check before calling getSessionId method
authorShijie Zhang <shijiez@qca.qualcomm.com>
Fri, 26 Apr 2013 09:30:01 +0000 (12:30 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Apr 2013 09:30:01 +0000 (12:30 +0300)
commitd78d3c619093cf9ecfc5b7e0537cf7cdd3df4c98
tree70d573e40ba08216cfa80f57fe26f27c4cdb6827
parentdd57970477669382fd5d9f8ca075a4167894eb22
EAP peer: Add check before calling getSessionId method

We should not call getSessionID method if it's not provided. This fixes
a regression from commit 950c5630768285e460aa336c78a18162fb3e0434 where
EAP methods that did not implement getSessionId resulted in NULL pointer
dereference when deriving the key.

Signed-off-by: Shijie Zhang <shijiez@qca.qualcomm.com>
src/eap_peer/eap.c