]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix a resource leak on hostapd maclist parsing error path
authorJouni Malinen <jouni@codeaurora.org>
Wed, 21 Mar 2018 20:34:09 +0000 (22:34 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 21 Mar 2018 20:34:09 +0000 (22:34 +0200)
commit0fa669bcaeb8861cbf24544f18d22a8f39821f1a
tree1ccdc058421eb6f3020d06e4e9f92912c85c4101
parent80da4335072f80ea1fb33903db4f865f6722692d
Fix a resource leak on hostapd maclist parsing error path

The open file needs to be closed in error case. The conversion to using
a new helper function (hostapd_add_acl_maclist) somehow managed to
remove the neede fclose(f) call. Bring it back to fix this.

Fixes: 3988046de538 ("hostapd: Dynamic MAC ACL management over control interface")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/config_file.c