mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-02 06:10:33 +01:00
dhcp: remove assertion in nm_dhcp_client_handle_event()
Technically, g_warn_if_reached() may not be an assertion, according to glib. However, there is G_DEBUG=fatal-warnings and we want to run with that. So this is an assertion to us. Also, logging to stderr/stdout is not a useful thing to the daemon. Don't do this. Especially, since it depends on user provided (untrusted) input. (cherry picked from commit892cde1436) (cherry picked from commit38b8fdb75c)
This commit is contained in:
parent
5686f7aa50
commit
ac95e0a693
1 changed files with 1 additions and 2 deletions
|
|
@ -977,8 +977,7 @@ nm_dhcp_client_handle_event(gpointer unused,
|
|||
str_options,
|
||||
priv->config.v6.info_only);
|
||||
}
|
||||
} else
|
||||
g_warn_if_reached();
|
||||
}
|
||||
|
||||
if (l3cd) {
|
||||
nm_l3_config_data_set_dhcp_lease_from_options(l3cd,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue