libnm-util: verify connection also for self-assignment in replace_settings_from_conne...
authorThomas Haller <thaller@redhat.com>
Thu, 17 Mar 2016 10:39:08 +0000 (11:39 +0100)
committerThomas Haller <thaller@redhat.com>
Sat, 26 Mar 2016 11:10:53 +0000 (12:10 +0100)
commitce6fdc3e5e66a17b4fdc4519500aaa06272bce5c
tree8c19fc1cad6a569aa59b39ddead5b34aa32e0787
parentbbc941245dac37083f0b46e115191c59bfbf95eb
libnm-util: verify connection also for self-assignment in replace_settings_from_connection()

nm_connection_replace_settings_from_connection() would return whether the
connection verifies at the end of the operation. While that is not very
useful, the API is like that and cannot be changed.

For consistency, also perform the verification step in case of self-assignment.
Self-assigment is anyway a case that probably never happens.
libnm-util/nm-connection.c