mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 15:10:09 +01:00
libnm-core: fix validation of connection.mdns setting
Commit9d92848ada("libnm: rename MDns flag UNKNOWN to DEFAULT") changed the enum order without updating verify(). Fixes:9d92848ada(cherry picked from commit0498c5487f)
This commit is contained in:
parent
be483778e7
commit
58bb588fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -1077,7 +1077,7 @@ verify (NMSetting *setting, NMConnection *connection, GError **error)
|
|||
}
|
||||
|
||||
if ( priv->mdns < NM_SETTING_CONNECTION_MDNS_DEFAULT
|
||||
|| priv->mdns > NM_SETTING_CONNECTION_MDNS_RESOLVE) {
|
||||
|| priv->mdns > NM_SETTING_CONNECTION_MDNS_YES) {
|
||||
g_set_error (error,
|
||||
NM_CONNECTION_ERROR,
|
||||
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue