chiark / gitweb /
systemd: fix uninitialized memory access in selinux
[elogind.git] / src / core / selinux-access.c
index be728d5..08a4834 100644 (file)
@@ -256,7 +256,7 @@ static int get_audit_data(
         const char *sender;
         int r, fd;
         struct ucred ucred;
-        socklen_t len;
+        socklen_t len = sizeof(ucred);
 
         sender = dbus_message_get_sender(message);
         if (sender)