Simo,
> Shouldn't we check the pointer was really allocated by talloc ?
> something like:
>
> if (tc->magic == TALLOC_MAGIC) {
> return tc->context;
> } else {
> return NULL;
> }
yep, that would be a reasonable check to add.
Cheers, Tridge