[systemd-devel] [PATCH 4/8] sd-dhcp6-client: Add Option Request Option support

Patrik Flykt Patrik.Flykt at linux.intel.com
Thu Jun 26 04:59:09 PDT 2014


On Thu, 2014-06-26 at 12:59 +0200, Zbigniew Jędrzejewski-Szmek wrote:
> > +        if (!GREEDY_REALLOC(client->req_opts, client->req_opts_allocated,
> > +                            (client->req_opts_len + 1) * sizeof(option)))
> > +                return -ENOMEM;
> GREEDY_REALLOC takes the number of *items*, so this will overallocated if I'm
> not mistaken (since commit ca2d3784147).

Fixed not to multiply with sizeof.


	Patrik




More information about the systemd-devel mailing list