libnm: fix checking argument in nm_team_link_watcher_new_arp_ping()
Found by coverity.
Fixes: 6c93e32212
This commit is contained in:
@@ -249,7 +249,7 @@ nm_team_link_watcher_new_arp_ping (gint init_wait,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpbrk (target_host, " \\/\t=\"\'")) {
|
if (strpbrk (source_host, " \\/\t=\"\'")) {
|
||||||
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
||||||
_("source-host '%s' contains invalid characters"), source_host);
|
_("source-host '%s' contains invalid characters"), source_host);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user