libnm-core: use _nm_connection_serialize_non_secret() in _nm_utils_hwaddr_cloned_data_synth()

This commit is contained in:
Thomas Haller 2021-04-01 17:28:53 +02:00
parent f0fe7384e1
commit 15fe784180
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -4306,8 +4306,7 @@ _nm_utils_hwaddr_cloned_data_synth(const NMSettInfoSetting * sett_
{
gs_free char *addr = NULL;
if (flags != NM_CONNECTION_SERIALIZE_ALL
&& !NM_FLAGS_HAS(flags, NM_CONNECTION_SERIALIZE_WITH_NON_SECRET))
if (!_nm_connection_serialize_non_secret(flags))
return NULL;
nm_assert(nm_streq0(sett_info->property_infos[property_idx].name, "assigned-mac-address"));