[PATCH] ndr: use resized array for ndr tokens

Volker Lendecke vl at samba.org
Fri Feb 24 07:29:26 UTC 2017


On Fri, Feb 24, 2017 at 04:03:02PM +1300, Douglas Bagnall wrote:
> sigh.
> 
> So, in trying to get this out before the weekend, I skipped a little bit
> of testing, and after sending the email I discovered I had missed the "
> == 0" in "if (_cmp_fn(tokens[i].key, key) == 0) {" for the nbt and dns
> cases.
> 
> This one should work better.

You don't need the alloc_count I think. Use talloc_array_length().

Volker



More information about the samba-technical mailing list