summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-10 14:47:00 +0100
committerRoy Marples <roy@marples.name>2020-06-10 14:47:00 +0100
commitc15e4978b45b4d9fc6e3b7bbc28f28b6f06a9ea4 (patch)
treea352a35e3dcb812e93295990166e2f9e5882d0e4 /src/privsep-root.c
parent53ad138573f73f9988f3a3b0f6eb14dc3250ed79 (diff)
downloaddhcpcd-c15e4978b45b4d9fc6e3b7bbc28f28b6f06a9ea4.tar.xz
privsep: fix size of rdm
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c
index 025bde9b..efafc20a 100644
--- a/src/privsep-root.c
+++ b/src/privsep-root.c
@@ -985,7 +985,7 @@ ps_root_getauthrdm(struct dhcpcd_ctx *ctx, uint64_t *rdm)
{
if (ps_sendcmd(ctx, ctx->ps_root_fd, PS_AUTH_MONORDM, 0,
- rdm, sizeof(rdm))== -1)
+ rdm, sizeof(*rdm))== -1)
return -1;
return (int)ps_root_readerror(ctx, rdm, sizeof(*rdm));
}