chiark / gitweb /
Get rid of some more unused defines and dirs
[elogind.git] / src / shared / ask-password-api.c
index 0a61dafc59026631532478607488e3736fcd80a1..a3a2e51bb9cafcb98781a90db18ef0f1f5650289 100644 (file)
 #include <sys/signalfd.h>
 
 #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;