TNC: Fix a stray pointer that could cause segfault on error path
authorMasashi Honma <honma@ictec.co.jp>
Mon, 16 Mar 2009 19:01:07 +0000 (21:01 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 16 Mar 2009 19:01:07 +0000 (21:01 +0200)
commit294379967825d4c8222e08f2fbed33d43d3aefa3
tree65125599fbcd9117c35c5bad91007c57c28855b9
parentc590cb67d47f4eee01fcc080c91101ec15e604c3
TNC: Fix a stray pointer that could cause segfault on error path

On "eap_tnc_process" function error case, data->in_buf keeps reference
to a local scope variable. For example this will cause segmentation
fault in "eap_tnc_deinit" function "wpabuf_free(data->in_buf)"
statement.
src/eap_peer/eap_tnc.c