chiark / gitweb /
shared: add formats-util.h
[elogind.git] / src / shared / ask-password-api.c
index 0a61dafc59026631532478607488e3736fcd80a1..dfc89d23fd91cadb07d193fea2130bf65265c44f 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/signalfd.h>
 
 #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;