Handle long configuration file lines more gracefully
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Aug 2012 20:52:45 +0000 (23:52 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Aug 2012 20:52:45 +0000 (23:52 +0300)
commitd42bc5e1786dd5131ca46ab7c0d3662d31f73b67
tree7f0baecf29048887f49b0a53d4f221148c64b7d9
parentcc8c7b88407d5515eaf94cfd19bdb09c70182660
Handle long configuration file lines more gracefully

Skip the end of long configuration lines that get truncated in
wpa_config_get_line(). Without this, the rest of the file was being
parsed as another line and that resulted in an unexpected error
message (wrong line number and wrong starting point).

In addition, increase the read buffer for network blocks from 256
to 2000 since p2p_client_list parameter can have long values. These
were supposed to truncated cleanly, but the unexpected processing of
the end of the file (which is now fixed in this commit) could cause
configuration file to be rejected.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1
wpa_supplicant/config_file.c