---
 gdhcp/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdhcp/common.c b/gdhcp/common.c
index 4a7270b..ae0ecb1 100644
--- a/gdhcp/common.c
+++ b/gdhcp/common.c
@@ -76,7 +76,7 @@ int dhcp_get_random(uint64_t *val)
                }
        }
 
-       if (read(random_fd, &val, sizeof(*val)) < 0) {
+       if (read(random_fd, &val, sizeof(uint64_t)) < 0) {
                r = -errno;
                *val = random();
 
-- 
2.1.3

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to