]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Close config file on error path
authorJouni Malinen <j@w1.fi>
Sat, 9 Jan 2010 20:29:41 +0000 (22:29 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Jan 2010 20:29:41 +0000 (22:29 +0200)
hostapd/config_file.c

index 0ec83b09891893cc5af391cae4b9d89cba2e9792..10b7a3597c9d395347a86a5e47b60a5adfa3464d 100644 (file)
@@ -1155,6 +1155,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
        if (conf->driver == NULL) {
                wpa_printf(MSG_ERROR, "No driver wrappers registered!");
                hostapd_config_free(conf);
+               fclose(f);
                return NULL;
        }