supplicant: set error when interface creation fails and was cancelled

https://bugzilla.redhat.com/show_bug.cgi?id=1823164

Fixes: b83f07916a ('supplicant: large rework of wpa_supplicant handling')
(cherry picked from commit fb023cc6e8)
This commit is contained in:
Beniamino Galvani 2020-04-21 11:21:41 +02:00
parent 3a0d817f69
commit 2d06a4e11a

View file

@ -562,6 +562,9 @@ _create_iface_dbus_call_create_interface_cb (GObject *source,
NM_HASH_OBFUSCATE_PTR (handle),
iface_path_str,
handle->name_owner->str);
nm_utils_error_set (&error,
NM_UTILS_ERROR_UNKNOWN,
"Request already cancelled");
} else {
_LOGT ("create-iface["NM_HASH_OBFUSCATE_PTR_FMT"]: name owner changed, still remove interface %s in %s",
NM_HASH_OBFUSCATE_PTR (handle),