aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-10-08 09:10:24 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-08 09:10:24 (GMT)
commitef50e41028adff82afae864487adaab2df97c563 (patch)
tree14b30871e1ba2c8cacac0b16bce7b971ce9cd0e4 /hostapd/config_file.c
parente4f90a6a276548494c4e7c14622bfed321570622 (diff)
downloadhostap-ef50e41028adff82afae864487adaab2df97c563.zip
hostap-ef50e41028adff82afae864487adaab2df97c563.tar.gz
hostap-ef50e41028adff82afae864487adaab2df97c563.tar.bz2
Increase the maximum hostapd.conf line length to 4096 bytes
It was already possible to use longer values through the control interface SET command, but the configuration file parser was still limited to 512 byte lines. Increase this to 4096 bytes since some of the configuration parameters (e.g., anqp_elem) can be longer. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 29442a9..d65b805 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3482,7 +3482,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
{
struct hostapd_config *conf;
FILE *f;
- char buf[512], *pos;
+ char buf[4096], *pos;
int line = 0;
int errors = 0;
size_t i;