help on TSIGs

Simo simo at samba.org
Fri Oct 10 09:20:26 MDT 2014


On Wed, 2014-10-08 at 19:00 -0700, Matthieu Patou wrote:
> - if (state->state.sign) { - ret = dns_sign_tsig(state->dns, mem_ctx,
> &state->state, + if (state->state->sign) { + ret =
> dns_sign_tsig(state->dns, mem_ctx, state->state, &state->out_packet,
> 0);

Looks to me a simpler fix would be to pass here 'state' instead of
mem_ctx to dns_sign_tsig()
This would keep related allocations on the same memory context and not
require you to make state->state it's own memory context.

Simo.



More information about the samba-technical mailing list