On Mon, Dec 1, 2014 at 6:17 AM, Patrik Flykt
<[email protected]> wrote:
> ---
>  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) {

Hmm, this looks fishy to me.  Wouldn't this read() call change the
pointer, rather than the uint64_t value?

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

Reply via email to