X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fask-password-api.c;h=dfc89d23fd91cadb07d193fea2130bf65265c44f;hb=01c94c5d0aff09b4c0e429d483c8eeba40017071;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..dfc89d23f 100644 --- a/src/shared/ask-password-api.c +++ b/src/shared/ask-password-api.c @@ -32,6 +32,7 @@ #include #include "util.h" +#include "formats-util.h" #include "mkdir.h" #include "strv.h" @@ -475,6 +476,8 @@ int ask_password_agent( goto finish; } + cmsg_close_all(&msghdr); + if (n <= 0) { log_error("Message too short"); continue;