summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-14 13:49:04 +0900
committerGitHub <noreply@github.com>2023-04-14 13:49:04 +0900
commit13524b29a2833675518b5d5701344196429cb924 (patch)
tree2d77cfb4f9010b3c707dfc699a5b9b06043d8016 /src/coredump
parent2cba2fcd250b0afa543ae4d8869231d16bc28a87 (diff)
parentca918f63b7a98442d2925c0a668c911d8140215b (diff)
downloadsystemd-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.c2
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);