Do not split strings into multiple lines
Convert hostapd_config_read_wpa_psk() to the newer style of not splitting strings into multiple lines. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
838180877f
commit
b27ed050db
1 changed files with 6 additions and 4 deletions
|
@ -348,8 +348,9 @@ static int hostapd_config_read_wpa_psk(const char *fname,
|
|||
if (!token)
|
||||
token = "";
|
||||
if (hwaddr_aton(token, addr)) {
|
||||
wpa_printf(MSG_ERROR, "Invalid MAC address '%s' on "
|
||||
"line %d in '%s'", token, line, fname);
|
||||
wpa_printf(MSG_ERROR,
|
||||
"Invalid MAC address '%s' on line %d in '%s'",
|
||||
token, line, fname);
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
|
@ -385,8 +386,9 @@ static int hostapd_config_read_wpa_psk(const char *fname,
|
|||
4096, psk->psk, PMK_LEN) == 0)
|
||||
ok = 1;
|
||||
if (!ok) {
|
||||
wpa_printf(MSG_ERROR, "Invalid PSK '%s' on line %d in "
|
||||
"'%s'", pos, line, fname);
|
||||
wpa_printf(MSG_ERROR,
|
||||
"Invalid PSK '%s' on line %d in '%s'",
|
||||
pos, line, fname);
|
||||
os_free(psk);
|
||||
ret = -1;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue