mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 03:00:20 +01:00
libnm: fix checking argument in nm_team_link_watcher_new_arp_ping()
Found by coverity. Fixes:6c93e32212(cherry picked from commitfb2da4b26c)
This commit is contained in:
parent
1bb6b3a79f
commit
ccdfe9d3e5
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ nm_team_link_watcher_new_arp_ping (gint init_wait,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (strpbrk (target_host, " \\/\t=\"\'")) {
|
||||
if (strpbrk (source_host, " \\/\t=\"\'")) {
|
||||
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
||||
_("source-host '%s' contains invalid characters"), source_host);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue