Remove newlines from wpa_supplicant config network output
authorPaul Stewart <pstew@google.com>
Thu, 3 Mar 2016 23:40:19 +0000 (15:40 -0800)
committerJouni Malinen <j@w1.fi>
Mon, 2 May 2016 08:08:25 +0000 (11:08 +0300)
commit0fe5a234240a108b294a87174ad197f6b5cb38e9
treea9ed54e2fded864a37fa8afc380e8dbc8b824ffe
parent5594df44c7cda554ab9d8bc8d8914fd5639a1c95
Remove newlines from wpa_supplicant config network output

Spurious newlines output while writing the config file can corrupt the
wpa_supplicant configuration. Avoid writing these for the network block
parameters. This is a generic filter that cover cases that may not have
been explicitly addressed with a more specific commit to avoid control
characters in the psk parameter.

Signed-off-by: Paul Stewart <pstew@google.com>
src/utils/common.c
src/utils/common.h
wpa_supplicant/config.c