mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
core/manager: close all cmsg fds where none is expected
This commit is contained in:
parent
3ad7f79023
commit
e8b9767f51
@ -4942,6 +4942,8 @@ static int manager_dispatch_handoff_timestamp_fd(sd_event_source *source, int fd
|
||||
if (n < 0)
|
||||
return log_error_errno(n, "Failed to receive handoff timestamp message: %m");
|
||||
|
||||
cmsg_close_all(&msghdr);
|
||||
|
||||
if (msghdr.msg_flags & MSG_TRUNC) {
|
||||
log_warning("Got truncated handoff timestamp message, ignoring.");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user