diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-14 13:49:04 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 13:49:04 +0900 |
commit | 13524b29a2833675518b5d5701344196429cb924 (patch) | |
tree | 2d77cfb4f9010b3c707dfc699a5b9b06043d8016 /src/coredump | |
parent | 2cba2fcd250b0afa543ae4d8869231d16bc28a87 (diff) | |
parent | ca918f63b7a98442d2925c0a668c911d8140215b (diff) | |
download | systemd-13524b29a2833675518b5d5701344196429cb924.tar.gz |
Merge pull request #27254 from poettering/cmsg-align-check
socket-util: tighten CMSG_TYPED_DATA() alignment checks
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index b7a62e72b0..5fdcfa7437 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1094,7 +1094,7 @@ static int process_socket(int fd) { } assert(input_fd < 0); - input_fd = *(int*) CMSG_DATA(found); + input_fd = *CMSG_TYPED_DATA(found, int); break; } else cmsg_close_all(&mh); |