mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-29 21:48:16 +02:00
Fix format string vulnerability in verify ()
which caused a build failure when compiling with -Werror=format-security
This commit is contained in:
parent
54618a72e3
commit
546c269f8d
1 changed files with 4 additions and 4 deletions
|
|
@ -402,10 +402,10 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
|
|||
|| !value[0]
|
||||
|| (strlen (value) > 200)
|
||||
|| strchr (value, ' ')) {
|
||||
g_set_error (error,
|
||||
NM_SETTING_BOND_ERROR,
|
||||
NM_SETTING_BOND_ERROR_INVALID_OPTION,
|
||||
key);
|
||||
g_set_error_literal (error,
|
||||
NM_SETTING_BOND_ERROR,
|
||||
NM_SETTING_BOND_ERROR_INVALID_OPTION,
|
||||
key);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue