diff options
Diffstat (limited to 'gsupplicant')
-rwxr-xr-x | gsupplicant/supplicant.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 12aed308..7f65e025 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -7641,6 +7641,12 @@ static void decryption_request_reply(DBusPendingCall *call, goto done; } + if (!g_str_has_prefix(data->interface->path, "/")) { + SUPPLICANT_DBG("Invalid path %s", data->interface->path); + ret = -EINVAL; + goto done; + } + if (dbus_message_iter_init(reply, &args) == FALSE) { SUPPLICANT_DBG("dbus_message_iter_init() failed"); ret = -EINVAL; |