X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fask-password-api.c;h=a3a2e51bb9cafcb98781a90db18ef0f1f5650289;hb=15925386d387b6ed9c1f174d4b08c767acad8117;hp=0a61dafc59026631532478607488e3736fcd80a1;hpb=0a6f50c0afdfc434b492493bd9efab20cbee8623;p=elogind.git diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c index 0a61dafc5..a3a2e51bb 100644 --- a/src/shared/ask-password-api.c +++ b/src/shared/ask-password-api.c @@ -32,8 +32,11 @@ #include #include "util.h" +#include "formats-util.h" #include "mkdir.h" #include "strv.h" +#include "random-util.h" +#include "terminal-util.h" #include "ask-password-api.h" @@ -475,6 +478,8 @@ int ask_password_agent( goto finish; } + cmsg_close_all(&msghdr); + if (n <= 0) { log_error("Message too short"); continue;