]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: fix size of rdm
authorRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 13:47:00 +0000 (14:47 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 13:47:00 +0000 (14:47 +0100)
src/privsep-root.c

index 025bde9bae2fb3bb8bec10b2d4499294470b0683..efafc20a599158eb8305ae415da414d6030eb1aa 100644 (file)
@@ -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));
 }