Increase the maximum hostapd.conf line length to 4096 bytes
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 8 Oct 2015 09:10:24 +0000 (12:10 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 8 Oct 2015 09:10:24 +0000 (12:10 +0300)
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>
hostapd/config_file.c

index 29442a9..d65b805 100644 (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;