X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fask-password-api.c;h=44ebc584914a6b5092835f0560e8ca09c7e7c299;hp=0a61dafc59026631532478607488e3736fcd80a1;hb=1c8da044469acabcfc479ba3276954da53210830;hpb=6e646d22f6f9215de5ccb5e5edf450558c59fed1 diff --git a/src/shared/ask-password-api.c b/src/shared/ask-password-api.c index 0a61dafc5..44ebc5849 100644 --- a/src/shared/ask-password-api.c +++ b/src/shared/ask-password-api.c @@ -475,6 +475,8 @@ int ask_password_agent( goto finish; } + cmsg_close_all(&msghdr); + if (n <= 0) { log_error("Message too short"); continue;