ask-password: remove files in /run when query is aborted

Because of the missing 'goto', if the query was aborted, we
would leave behind the ask.* ini file.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-02-02 15:16:23 +01:00
parent f01c99c67e
commit 65f72f5dbb
+4 -2
View File
@@ -1004,8 +1004,10 @@ int ask_password_agent(
goto finish;
}
if (req->hup_fd >= 0 && pollfd[hup_fd_idx].revents & POLLHUP)
return -ECONNRESET;
if (req->hup_fd >= 0 && pollfd[hup_fd_idx].revents & POLLHUP) {
r = -ECONNRESET;
goto finish;
}
if (inotify_fd >= 0 && pollfd[inotify_idx].revents != 0) {
(void) flush_fd(inotify_fd);