mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 16:38:32 +02: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
|
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,
|
g_set_error (error,
|
||||||
NM_CONNECTION_ERROR,
|
NM_CONNECTION_ERROR,
|
||||||
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
NM_CONNECTION_ERROR_INVALID_PROPERTY,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue