diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-02-27 15:36:43 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2008-02-27 15:36:43 +0000 |
commit | f5a9e2f62deaf0e55a82aade816e3bf32c8ee646 (patch) | |
tree | 43fd6b0ee66026e10fd7736444c27ba11f751824 /usr.sbin/hostapd | |
parent | 4f609e8c67f2c77e5f755e2a57fea77522b23b8c (diff) |
Unbreak parser by initializing topfile correctly.
I got fooled by patch(1). Sorry.
Diffstat (limited to 'usr.sbin/hostapd')
-rw-r--r-- | usr.sbin/hostapd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y index 820917e4b3b..686f8f954d1 100644 --- a/usr.sbin/hostapd/parse.y +++ b/usr.sbin/hostapd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.37 2008/02/26 10:09:58 mpf Exp $ */ +/* $OpenBSD: parse.y,v 1.38 2008/02/27 15:36:42 mpf Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org> @@ -1711,6 +1711,7 @@ hostapd_parse_file(struct hostapd_config *cfg) if ((file = pushfile(cfg->c_config, 1)) == NULL) hostapd_fatal("failed to open the main config file: %s\n", cfg->c_config); + topfile = file; /* Init tables and data structures */ TAILQ_INIT(&cfg->c_apmes); @@ -1739,7 +1740,6 @@ hostapd_parse_file(struct hostapd_config *cfg) free(sym); } } - topfile = file; return (errors ? EINVAL : ret); } |