chiark / gitweb /
shared: introduce cmsg_close_all() call
[elogind.git] / src / shared / ask-password-api.c
index 0a61daf..44ebc58 100644 (file)
@@ -475,6 +475,8 @@ int ask_password_agent(
                         goto finish;
                 }
 
+                cmsg_close_all(&msghdr);
+
                 if (n <= 0) {
                         log_error("Message too short");
                         continue;