bpfc: Check yyin against NULL before calling fclose() on it
commitf780f9ccfc4c27decca1c28b1e8bc7628f2fc9f4
authorTobias Klauser <tklauser@distanz.ch>
Wed, 25 Nov 2015 16:20:11 +0000 (25 17:20 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 25 Nov 2015 16:20:11 +0000 (25 17:20 +0100)
treeaf5ead5d11a35645fb5b91278728f44ab8917559
parent3f2f363485d3da15bc2c397ea1f1705b4f377b23
bpfc: Check yyin against NULL before calling fclose() on it

Follow 3f2f363485d3 ("trafgen: Make sure yyin is set before close it")
and check the yyin pointer against NULL before attempting to call
fclose() with it.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
bpf_parser.y