]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-GPSK: Avoid dead increment by checking pos pointer
authorJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 22:46:42 +0000 (01:46 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 09:38:48 +0000 (12:38 +0300)
commit62493dff1bbddcf96b5f15d4b57caa972a4842b2
tree0b6face25210fcce3efda08005fdbb126849dc0f
parent164a453f9b33157ce40106009272455e09267f43
EAP-GPSK: Avoid dead increment by checking pos pointer

Instead of using the pre-calculated length of the buffer, determine the
length of used data based on the pos pointer. This avoids a static
analyzer warning about dead increment.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_common/eap_gpsk_common.c