libnm-core: fix validation of connection.mdns setting

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

Fixes: 9d92848ada
(cherry picked from commit 0498c5487f)
This commit is contained in:
Beniamino Galvani 2018-04-21 18:40:57 +02:00
parent be483778e7
commit 58bb588fbe

View file

@ -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,