Commit 0498c548 authored by Beniamino Galvani's avatar Beniamino Galvani
Browse files

libnm-core: fix validation of connection.mdns setting

Commit 9d92848a ("libnm: rename MDns flag UNKNOWN to DEFAULT")
changed the enum order without updating verify().

Fixes: 9d92848a
parent ff9ecbad
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment