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>
This commit is contained in:
Jouni Malinen 2015-10-08 12:10:24 +03:00 committed by Jouni Malinen
parent e4f90a6a27
commit ef50e41028

View file

@ -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;